KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to show the status bar in my app in all views but one. I have tried modifying the 'status bar is initially hidden' in the plist, i have tried: [[UIApplication sharedApplication] setStatusBarHidden:YES]; That hides the bar but leaves an ugly blue box where the status bar was (which isn't part of my view, there's nothing blue on there). I have also tried altering the layout wants full screen and status bar settings in the 'interface builder' bit of Xcode 4.2. Any suggestions? EDIT - SORT OF SOLUTION: I have done it by including: -(void)viewWillDisappear:(BOOL)animated{ [[UIApplication sharedApplication] setStatusBarHidden:YES]; } -(void)viewDidAppear:(BOOL)animated{ [[UIApplication sharedApplication] setStatusBarHidden:NO]; } on every single page that I want the status bar to be on. It still looks choppy and rubbish because the tab bar appears and reappears each time you switch a view. But i've had enough, worked on this stupid problem for about 5 hours now so this will have to do. SECOND EDIT - Fixed the choppyness by including setStatusBarHidden=NO in viewWillAppears. God knows how everything works but it does.
Tags (comma-separated)
Save Edits
Cancel