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/Resources/InfoGraphic/index.html | 8 ++--- Volta/Views/InfographicViewController.m | 2 ++ Volta/Volta-Info.plist | 1 - Volta/en.lproj/MainStoryboard.storyboard | 51 -------------------------------- 4 files changed, 6 insertions(+), 56 deletions(-) diff --git a/Volta/Resources/InfoGraphic/index.html b/Volta/Resources/InfoGraphic/index.html index 8be97ec..3d21f4b 100755 --- a/Volta/Resources/InfoGraphic/index.html +++ b/Volta/Resources/InfoGraphic/index.html @@ -46,11 +46,11 @@

999 kWh

of energy


-

$99.99

+

$


This is on average

-

99.9 kWh or

-

$99.99

+

kWh or

+

$

per
day


@@ -83,7 +83,7 @@

-

$408

a month or

+

$408

a year

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]; }); } diff --git a/Volta/Volta-Info.plist b/Volta/Volta-Info.plist index ade1231..d992a35 100644 --- a/Volta/Volta-Info.plist +++ b/Volta/Volta-Info.plist @@ -47,7 +47,6 @@ UISupportedInterfaceOrientations - UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight diff --git a/Volta/en.lproj/MainStoryboard.storyboard b/Volta/en.lproj/MainStoryboard.storyboard index 0a6b752..18d6acb 100644 --- a/Volta/en.lproj/MainStoryboard.storyboard +++ b/Volta/en.lproj/MainStoryboard.storyboard @@ -437,57 +437,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3