Only support for landscape Interface orientation

后端 未结 2 1469
遇见更好的自我
遇见更好的自我 2021-01-24 11:06

I have application that uses landscape right orientation. In view controllers I use:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)inter         


        
2条回答
  •  耶瑟儿~
    2021-01-24 11:47

    The problem was in function viewDidLoad where another view controller is pushed into navigation stack immediately. If pushing action is delayed then landscape rotation will start and proceed, and also desired view controller will be pushed properly with landscape orientation.

提交回复
热议问题