From bd0e503c84a411a2934d39cef5d16862ddc4a690 Mon Sep 17 00:00:00 2001 From: Ronny Fenrich Date: Wed, 19 Jun 2013 08:48:36 -0600 Subject: some tweaks for Infographic --- Volta/Views/InfographicViewController.m | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Volta/Views/InfographicViewController.m') diff --git a/Volta/Views/InfographicViewController.m b/Volta/Views/InfographicViewController.m index a247597..0eabb92 100644 --- a/Volta/Views/InfographicViewController.m +++ b/Volta/Views/InfographicViewController.m @@ -34,6 +34,7 @@ [self.webView loadHTMLString:markup baseURL:[NSURL URLWithString:[NSString stringWithFormat:@"file:/%@//", resourcePath]]]; }); + self.webView.alpha = 0.0; } @@ -74,6 +75,7 @@ dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC)); dispatch_after(popTime, dispatch_get_main_queue(), ^(void){ [self.webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"updateData(%.2f, %.2f)", totalkWh, totalCost]]; + [self.webView fadeIn]; }); } -- cgit v1.2.3