How to get default LandscapeLeft Orientation in iOS5?

前端 未结 4 1082

Sorry if this question is duplicate, but I can\'t find the same solution. In iOS6, if I want to set default orientation for one UIViewController, I just use:

- (         


        
4条回答
  •  不要未来只要你来
    2021-01-28 03:05

    You need to provide

    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
    {
         UIInterfaceOrientationIsLandscape(interfaceOrientation);
    }
    

    for that single View controller.

提交回复
热议问题