This is not a duplicate question as far as I can tell. I have no problem hiding the status bar on iphone but I cannot figure out how to do it with an ipad. I have followed as many examples as I can find to try to hide it but nothing works. I currently have the appropriate stuff set in plist and it works fine for iphone but the same code does not work for ipad. Any suggestions? Thanks
Asked
Active
Viewed 1,801 times
2
-
Please post what you have tried, with code and which iOS version you are targeting. – rckoenes Mar 25 '14 at 15:15
-
What does this have to do with the `xcode IDE`??? Also this sounds like a duplicated question, sounds very much like every other question how to hide the status bar on `iOS` devices. – Popeye Mar 25 '14 at 15:16
-
Check your ~iPad xibs. Click on the main view and check the properties tab to see if status bar is 'none' – Jack Mar 25 '14 at 15:17
-
possible duplicate of [How to hide status bar in iOS 7?](http://stackoverflow.com/questions/19826320/how-to-hide-status-bar-in-ios-7) and [How to hide status bar in iOS 6?](http://stackoverflow.com/questions/20152738/ios6-hidden-status-bar) – Popeye Mar 25 '14 at 15:17
-
1As I wrote quite clearly in the question. I have tried EVERYTHING I have found on this issue in and it does not resolve the issue. I am targeting for 7.1 and using xcode 5.1. If you do not know the answer or choose not to respond that's fine, but please don't be a dick. Thanks – vboombatz Mar 25 '14 at 15:30
-
1It can help if you list the examples that didn't work for you so they are not flagged as duplicates. – Uyghur Lives Matter Mar 25 '14 at 15:55
-
I have tried this UIViewControllerBasedStatusBarAppearance = NO, this UIStatusBarHidden = YES and this – vboombatz Mar 25 '14 at 20:58
-
Dear Mr Popeye, perhaps you can clarify. I assume it has to with xcode IDE because that's what I'm using to write and test the code. Am I mistaken. As I will state a third time, it is not a duplicate question, it is an extended question. It may sound like every other question, but if you read a little further you'll see that I am asking beyond a duplicate question. Do you have the answer? If so, please let me know and I'll be grateful. – vboombatz Mar 25 '14 at 21:03
-
I also tried this [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade]; and this [UIApplication sharedApplication].statusBarHidden = YES; and this - (BOOL)prefersStatusBarHidden { return YES; } – vboombatz Mar 25 '14 at 21:06
1 Answers
0
Did you try setting the keys:
UIStatusBarHidden = YES
and
UIViewControllerBasedStatusBarAppearance = NO
into the info.plist file?

s.muellner
- 61
- 4
-
I have Status bar is initially hidden = YES and View controller-based status bar appearance = NO. I do not see the option to set up the two that you mention that start with UI – vboombatz Mar 25 '14 at 15:50
-
Open your info.plist file in Xcode, right click on the table and enable "Show Raw Keys/Values". Now you should be able to see the raw key name, this should equal the ones I mentioned in the answer. Also check that you do not reenable the status bar in your XIB/storyboard or programmatically! – s.muellner Mar 25 '14 at 20:09
-
Ok. I did that. Everything checks out, still shows status bar with ipad. – vboombatz Mar 25 '14 at 20:36
-
1I think I'm getting closer. The status bar shows up when I run an iphone app on an ipad or in the simulator. It does not show up when I set it xcode to be a universal app. The problem with a universal setting is (I think) I have to have separate storyboard for ipad. Is this true? I just want to have the app set as iphone using one storyboard and not see the status bar on either the ipad or iphone. Everything else seems to work fine with an app set to iphone running on ipad or the ipad simulator except the status bar shows up on the ipad. Any suggestions? Thanks – vboombatz Mar 25 '14 at 20:39
-
Actually I would suggest that you use separate storyboards, but for what it is worse you can use the iphone storyboard also for an ipad, but not vice versa. Just go to your info.plist and set for example Main_iPhone also as value for UIMainStoryboardFile~ipad – s.muellner Mar 25 '14 at 22:08
-
Yes, I think you have to set the app as universal and use two storyboards. There ought to be a better way, and I think it worked prior to 7.1 but i have not found a better way to do it. – vboombatz Mar 28 '14 at 17:53