Reputation: 37136
Hi I'm upgrading my Universal app from iOS6 to iOS7. I'm hiding the status bar by using this inside .plist file:
-> Status bar is initially hidden = YES
-> View controller-based status bar appearance = NO
Then inside my AppDelegate didFinishLaunchingWithOptions: I added:
[[UIApplication sharedApplication] setStatusBarHidden:YES
withAnimation:UIStatusBarAnimationNone];
[[UIApplication sharedApplication] setStatusBarHidden:YES];
The statusbar is correctly hidden when running on:
I only have issues on iPad/iOs7. I can't hide it here!
Any Help?
Upvotes: 2
Views: 264
Reputation: 808
make sure your xcode project is not target only for iphone.
in my case, my xcode project is target only for iphone, and i'm building my project in ipad with 2x zoom so non of hide statusBar solution worked for me. here is my Solution, i just change Device type to ipad under Deployment info column. and apply this
Status bar is initially hidden = YES
View controller-based status bar appearance = NO
into info.plist
Upvotes: 1
Reputation: 478
Try this http://www.openfl.org/community/general-discussion/iphone-5ios-7-cant-hide-status-bar/
I found it from this post Cannot hide status bar in iOS7
you can still hide the status bar, but it's up to each view controller subclass in your app to override: prefersStatusBarHidden to return YES
Upvotes: 0