Device orientation handling in iOS 6 during view load?
问题 I have a Tab bar application. I was using XCode 4.3.3. I have upgraded to 4.5.2 with iOS6 stuffs. My code in the shouldAutorotateToInterfaceOrientation for each view will check the current device orientation and place all the UI components properly. But after upgrading to iOS 6, this code is not executing. I have tried for almost one day to fix this, but had no luck. I have also tried UIDeviceOrientation interfaceOrientation = [[UIDevice currentDevice] orientation]; in viewLoad , viewDidLoad