why iPhone 5 doesn't rotate to upsideDown

后端 未结 5 1909
挽巷
挽巷 2020-12-29 05:18

i added the new methods to my code like described at apples iOS 6 Documentations but on the iPhone 5 the App doesn\'t rotate to upside down. Only the to landscape Ways.

5条回答
  •  梦毁少年i
    2020-12-29 05:47

    Thanks to Cliff Ribaudo really help full your answer for UITabbarController based project but in my case i am only using UINavigationController so i have modified your answer for UINavigationController categeory.

    @interface UINavigationController (RotationAll)
    -(NSUInteger)supportedInterfaceOrientations;
    @end   
    
    
    @implementation UINavigationController (RotationAll)
      -(NSUInteger)supportedInterfaceOrientations {
        return UIInterfaceOrientationMaskAll;
      }
    @end
    

提交回复
热议问题