Asked
Active
Viewed 53 times
0
-
1status bar problem fix 20px from top – codercat Dec 30 '13 at 08:46
-
1http://stackoverflow.com/questions/18760710/how-to-hide-status-bar-in-uiimagepickercontroller – Piyush Dubey Dec 30 '13 at 08:49
2 Answers
1
Try This code :
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
[[UIApplication sharedApplication] setStatusBarHidden:YES];
}

Darshak
- 2,298
- 4
- 23
- 45
0
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) {
[application setStatusBarStyle:UIStatusBarStyleLightContent];
self.window.clipsToBounds =YES;
self.window.frame = CGRectMake(0,20,self.window.frame.size.width,self.window.frame.size.height-20);
self.window.bounds = CGRectMake(0, 20, self.window.frame.size.width, self.window.frame.size.height);
}
return YES;
}

codercat
- 22,873
- 9
- 61
- 85