iOS 6 ViewController is rotating but shouldn't

前端 未结 3 1336
忘了有多久
忘了有多久 2020-12-30 12:24

I want several of my app viewcontrollers to not rotate in iOS 6.0. This is what i did to make the rotation in iOS 6 possible:

1.) Set the windows rootviewController

3条回答
  •  长情又很酷
    2020-12-30 12:41

    This works for me:

    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
    {
        return NO;
    }
    

提交回复
热议问题