Skip to content
Permalink
Browse files
CB-5199 - ios - Media Capture - UI issues under iOS 7
  • Loading branch information
shazron committed Oct 24, 2013
1 parent d7ab62f commit 2ebeb2bb503692a889d602dfe41e4ec47000045a
Showing 1 changed file with 21 additions and 0 deletions.
@@ -45,6 +45,23 @@ - (uint64_t)accessibilityTraits
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 @@ - (id)initWithCommand:(CDVCapture*)theCommand duration:(NSNumber*)theDuration ca

- (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];

0 comments on commit 2ebeb2b

Please sign in to comment.