0

I have a UINavigationContorller which leads to a UITableView. The problem is that just above the UINavigationBar I have some white space. I think it is the status bar as it has the same saze, but I can't get how to remove it. Thanks for any help.

user2014474
  • 1,117
  • 5
  • 19
  • 36
  • possible duplicate with many good answers :http://stackoverflow.com/questions/2393868/how-do-i-get-the-navigation-bar-in-a-uinavigationcontroller-to-update-its-positi – InvalidReferenceException Jun 06 '13 at 19:30
  • I think I didn't explain well myself, the status bar I want to hide is the one above the UItableView which is in a container view, not the actual bar at the top of the ipad screen – user2014474 Jun 06 '13 at 20:59
  • So you're not trying to hide the system status bar? It sounds like you want to hide a navigationBar from a previous viewcontroller? i.e., you have a NavController pushing to a containerview with a navcontroller inside? – powerj1984 Jun 06 '13 at 21:25

3 Answers3

1

Try to use

[[UIApplication sharedApplication] setStatusBarHidden:true];

in one of the view delegate method like viewDidLoad or viewWillappear method.

Ponting
  • 2,248
  • 8
  • 33
  • 61
0

if you want to hide the status bar then you can do it by :

[[UIApplication sharedApplication] setStatusBarHidden:true];
subhash kumar singh
  • 2,716
  • 8
  • 31
  • 43
0

Select the Project and Got to 'Targets' and in 'Summery' u can see the statusBar column. there c you can uncheck visibility check box https://i.stack.imgur.com/9XVLP.png

Baalu
  • 243
  • 2
  • 9