Question

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?

Was it helpful?

Solution

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 : )

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top