UIImagePickerController in iOS 7 status bar

核能气质少年 提交于 2019-11-29 11:02:53

I have same problem... and solve my proble... Add The key in .plist file

'View controller-based status bar appearance' and set to NO.

And add in appDelegate.

[application setStatusBarHidden:NO]; 
[application setStatusBarStyle:UIStatusBarStyleDefault]; 

Note:- change the **setStatusBarStyle** according to your app background color

Set View controller-based status bar appearance' and set to NO.

And add in appDelegate.

[application setStatusBarHidden:NO]; [application setStatusBarStyle:UIStatusBarStyleDefault];

try this

- (void)navigationController:(UINavigationController *)navigationController     willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
    [[UIApplication sharedApplication] setStatusBarHidden:YES];
}
be.with.veeresh

In App's Info.plist file add:

"View controller-based status bar appearance" == NO

In appdelegae.m file,add following code in

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

  [application setStatusBarHidden:NO];
  [application setStatusBarStyle:UIStatusBarStyleBlackTranslucent];

}

This is a bug in iOS 7.0 and it's fixed in iOS 7.1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!