cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [3/5] git commit: CB-4958 - iOS - Camera plugin should not show the status bar
Date Mon, 28 Oct 2013 22:11:12 GMT
CB-4958 - iOS - Camera plugin should not show the status bar


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/4e6cf5cc
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/4e6cf5cc
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/4e6cf5cc

Branch: refs/heads/master
Commit: 4e6cf5cc2e4739fac53111cee62f0217491b1539
Parents: eab4822
Author: Shazron Abdullah <shazron@apache.org>
Authored: Tue Oct 15 10:29:54 2013 -0700
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Tue Oct 15 10:29:54 2013 -0700

----------------------------------------------------------------------
 src/ios/CDVCamera.m | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/4e6cf5cc/src/ios/CDVCamera.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVCamera.m b/src/ios/CDVCamera.m
index 19f8148..42c5237 100644
--- a/src/ios/CDVCamera.m
+++ b/src/ios/CDVCamera.m
@@ -736,4 +736,21 @@ static NSSet* org_apache_cordova_validArrowDirections;
 @synthesize webView;
 @synthesize popoverSupported;
 
+- (BOOL)prefersStatusBarHidden {
+    return YES;
+}
+
+- (UIViewController*)childViewControllerForStatusBarHidden {
+    return nil;
+}
+    
+- (void)viewWillAppear:(BOOL)animated {
+    SEL sel = NSSelectorFromString(@"setNeedsStatusBarAppearanceUpdate");
+    if ([self respondsToSelector:sel]) {
+        [self performSelector:sel withObject:nil afterDelay:0];
+    }
+    
+    [super viewWillAppear:animated];
+}
+
 @end


Mime
View raw message