开发者

How to Remove status bar from Particular View controller?

开发者 https://www.devze.com 2023-03-11 17:13 出处:网络
I am trying to remove status bar fro开发者_JS百科m particular View Controller but still it shows blue line when i tried to Hide it so please give some suggestions for that.[[UIApplication sharedApplic

I am trying to remove status bar fro开发者_JS百科m particular View Controller but still it shows blue line when i tried to Hide it so please give some suggestions for that.

How to Remove status bar from Particular View controller?


[[UIApplication sharedApplication] setStatusBarHidden:YES];


In order to Hide the Status bar from Every View try putting the code in your appdelegate file. in the applicationDidFinishLaunching method as follows

-(void)applicationDidFinishLaunching:(UIApplication *)application {

[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];

[window addSubview:tabBarController.view]; }

0

精彩评论

暂无评论...
验证码 换一张
取 消