diff options
Diffstat (limited to 'Volta/Views')
| -rw-r--r-- | Volta/Views/InfographicViewController.m | 2 |
1 files changed, 2 insertions, 0 deletions
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]; }); } |
