IEverything works fine before iOS 6. I have a subclass of UIViewController in UINavigationController , as usual. His gaze is reduced by about 20 pixels, as if there is another status bar up. When I click and go back. Glance returned to the correct position. I found out about this because the UIViewControllerWrapperView (obtained using self.view.superview ) of the frame somehow mistakenly got into iOS 6.
Running NSLog in viewDidAppear
When starting the application ...
self.view.frame: {{0, 0}, {768, 891}} // was {{0, 0}, {768, 911}} in iOS5.1 self.view.superview: <UIViewControllerWrapperView: 0x9dddb80; frame = (0 20; 768 891); autoresize = W+H; layer = <CALayer: 0x9dddc30>> // was (0 0; 768 911); in iOS5.1
After the controller push and pop view (correct value) ...
self.view.frame: {{0, 0}, {768, 911}} self.view.superview: <UIViewControllerWrapperView: 0x9dddb80; frame = (0 0; 768 911); autoresize = W+H; layer = <CALayer: 0x9dddc30>>
It never happens. How is this manifested in iOS 6?
Hlung source share