You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/10/28 23:13:23 UTC
[3/5] git commit: CB-5199 - ios - Media Capture - UI issues under iOS
7
CB-5199 - ios - Media Capture - UI issues under iOS 7
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/commit/2ebeb2bb
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/tree/2ebeb2bb
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/diff/2ebeb2bb
Branch: refs/heads/master
Commit: 2ebeb2bb503692a889d602dfe41e4ec47000045a
Parents: d7ab62f
Author: Shazron Abdullah <sh...@apache.org>
Authored: Thu Oct 24 15:38:10 2013 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Thu Oct 24 15:38:10 2013 -0700
----------------------------------------------------------------------
src/ios/CDVCapture.m | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/2ebeb2bb/src/ios/CDVCapture.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVCapture.m b/src/ios/CDVCapture.m
index 3df4217..39219b7 100644
--- a/src/ios/CDVCapture.m
+++ b/src/ios/CDVCapture.m
@@ -45,6 +45,23 @@
return UIAccessibilityTraitNone;
}
+- (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
@implementation CDVCapture
@@ -580,6 +597,10 @@
- (void)loadView
{
+ if ([self respondsToSelector:@selector(edgesForExtendedLayout)]) {
+ self.edgesForExtendedLayout = UIRectEdgeNone;
+ }
+
// create view and display
CGRect viewRect = [[UIScreen mainScreen] applicationFrame];
UIView* tmp = [[UIView alloc] initWithFrame:viewRect];