2

Client has come back to me on projects saying they see white space on the top (they can't see the default things like time, wifi signal, etc) at the top.

This is happening when they installed iOS7 on their iPad.

Any idea why this is happening?

Note:

I have navigation bar as image. I hide the navigation bar and put navigation bar as an image.


Downvoters

I know this is not a perfect question for SO, but I thought to ask to take inputs. Tomorrow I am going to study on it.

Fahim Parkar
  • 30,974
  • 45
  • 160
  • 276
  • 1
    see my SO answer http://stackoverflow.com/questions/18953509/how-to-prevent-navigation-bar-from-covering-top-of-view-in-ios-7/18953585#18953585 – Deepesh Oct 07 '13 at 14:21

2 Answers2

0

It's due to the status bar.

In your XIB or Storyboard chose to view your xib as iOS 6 :

enter image description here

On your view, add a Content View (you will add your outlets elements inside this content view) and add a Y delta of 20 (for the status bar) :

enter image description here

Now, if you compile your app on iOS 7 or iOS 6, your view will go up or down and you won't have the space anymore.

Jordan Montel
  • 8,227
  • 2
  • 35
  • 40
0

try to insert following code into your viewDidLoad:

if( [self respondsToSelector:@selector(edgesForExtendedLayout)] ) {
  self.edgesForExtendedLayout = UIRectEdgeNone;
}

Otherwise you could try it, by removing the UIStatusBar. Select your Project, go to the section General and select Hide during application launch inside the subsection Deployment Info. Next you have to add the attribute inside the Info section called View controller-based status bar appearance and set it to NO.

Alex Cio
  • 6,014
  • 5
  • 44
  • 74
  • are you telling me to hide status bar? you meant full screen app? well my answer is NO, as client have already mentioned that they wanna see status bar at the top... – Fahim Parkar Oct 07 '13 at 14:21
  • the first snippet won't fade out the statusbar. And it will always be accessible even it is not visible. But of course if your clients want the status bar the last hint isn't an option. – Alex Cio Oct 07 '13 at 14:25