iOS 6 AutoRotate In UiNavigationController

前端 未结 5 637
挽巷
挽巷 2020-12-10 08:46

I have UiNavigationController in my app. I want that only one screen will be able to rotate so i put in this class :

-(BOOL)shouldAutorotateToInterfaceOrient         


        
5条回答
  •  时光说笑
    2020-12-10 09:40

    -(NSUInteger)supportedInterfaceOrientations
    {
        return self.topViewController.supportedInterfaceOrientations;
    
    }
    

提交回复
热议问题