Upside down orientation not working in iOS6 for UINavigation view and UITabbar view?

后端 未结 3 1015
说谎
说谎 2021-02-19 02:05

I created an app in ios 6 with navigation view.Also I have set all orientation options in the application summary and even used the

 -(BOOL) shouldAutoRotate
         


        
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-19 02:23

    Hai I have found solution for my problem

    Solution: For the app which consist UINavigation controller, just I created a category for UINavigation Controller class and I defined these methods

    -(BOOL) shouldAutorotate{
        return YES;
    }
    
    -(NSUInteger) supportedInterfaceOrientations{
    
        return UIInterfaceOrientationMaskAll;
    }
    

    After adding this, all orientation were supported in my app.

    The same, I done for UITabBar Controller also.This too worked for me by creating category for UITabBar Controller.

    Thank you.

提交回复
热议问题