0

When I minimize and maximize app in iOS 6 whole application view moves up by 20 pixel. (looks like ignoring status bar) But on iOS 7 its ok because status bar is overlaid on the application view.

I don't want app view to be moved up.
Can anyone explain what's happening?

Rendel
  • 1,794
  • 3
  • 13
  • 16
  • The height of the window frame is 20 pixels more in ios 7. I'm not sure there is an easy fix. a fixed used can be to manipulate the window frame size depending if ios 6 or ios 7 by adding or subtracting from the frame height 20 pixels etc. I can't give a complete solution but if you search there are some general status bar solutions particularly stuff orientated toward people migrating from ios 6 to ios 7. – LanternMike May 01 '14 at 15:35
  • Have a look at http://stackoverflow.com/questions/18775874/ios-7-status-bar-overlaps-the-view – Popeye May 13 '14 at 13:48

2 Answers2

1

I know that this is bad solution but I had no other way to do this :( I just moved down main window by 20 pixel in applicationWillEnterForeground.
- (void)applicationWillEnterForeground:(UIApplication *)application { if(!iOS7) [self.window setY:20]; }
This works good now : )
Hope this helps anyone : )

Rendel
  • 1,794
  • 3
  • 13
  • 16
0

This worked for me:

I checked "Adjust Scroll View Insets" in the MainStoryboard Attributes Inspector and it worked.

NOTE: I'm using a UITAbleView embedded in a Navigation Controller embedded in a tabViewController. I "selected" the main TabBarViewController.

The screen doesn't hide behind the header anymore.

This link helped a lot: UITableView embedded in other view has wrong position of section header

Community
  • 1
  • 1
Lukesivi
  • 2,206
  • 4
  • 25
  • 43