Made web view background color black to better match native apps when changing 
orientation

Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/f63c6d81
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/f63c6d81
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/f63c6d81

Branch: refs/heads/master
Commit: f63c6d81925de764d7f1cb2b02e16a07eb86c4b6
Parents: 0a7a0b9
Author: Will Froelich <tw12...@falsetruth.net>
Authored: Fri Dec 9 18:56:23 2011 -0800
Committer: Will Froelich <tw12...@falsetruth.net>
Committed: Fri Dec 9 18:56:23 2011 -0800

----------------------------------------------------------------------
 PhoneGap-based Application/Classes/AppDelegate.m |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/f63c6d81/PhoneGap-based
 Application/Classes/AppDelegate.m
----------------------------------------------------------------------
diff --git a/PhoneGap-based Application/Classes/AppDelegate.m b/PhoneGap-based 
Application/Classes/AppDelegate.m
index 020b95a..357cb85 100644
--- a/PhoneGap-based Application/Classes/AppDelegate.m  
+++ b/PhoneGap-based Application/Classes/AppDelegate.m  
@@ -69,6 +69,10 @@
                NSString* jsString = [NSString stringWithFormat:@"var 
invokeString = \"%@\";", self.invokeString];
                [theWebView stringByEvaluatingJavaScriptFromString:jsString];
        }
+       
+        // Black base color for background matches the native apps
+       theWebView.backgroundColor = [UIColor blackColor];
+    
        return [ super webViewDidFinishLoad:theWebView ];
 }
 

Reply via email to