StatusBarFrame = 0 after stacking currentViewController

  • My main view controller calls presentViewController to display the configuration screen.
  • The button on this configuration screen calls presentViewController so that the user can select a photo.
  • After the second view controller is rejected, the first view controller redraws under the status bar on iOS 6 (works fine on iOS 5).

In the viewWillAppear method of the first configuration controller (the one that was presented modally) I tried a couple of things:

  • Checking the status of a BarFrame (it returns 20 on the first view; 20 in the following views)
  • Checking the main screen (it returns {{0, 20}, {320, 460}} at a glance, {0, 0} for the following views)
  • Manually setting the y coordinate for the frame to 20 (iOS will change it to 0, even if the autoresist mask is set to none)

At this moment, I can’t think of anything except that it manually moves all the dungeons by 20 pixels, which is super janky. Any thoughts on what could be causing this?

What has changed in iOS 6 that might cause this?

+4
source share
1 answer

I'm not sure why, but this was fixed by removing the iOS 6 rotation methods that were not used, since the application has only a portfolio (shouldAutorotate and supportedInterfaceOrientations).

+4
source

Source: https://habr.com/ru/post/1445583/


All Articles