我在 View Controller 的 shouldAutorotateToInterfaceOrientation
函数中返回 YES
,并且我可以使用断点看到返回 YES
,但是willRotateToInterfaceOrientation
方法没有被调用,也没有任何其他旋转方法。返回 YES
后似乎没有任何反应!
有什么想法吗?
迈克
最佳答案
这个 View viewController 是不是导航 Controller 的其他 Root View Controller 的 subview 吗?如果是这样,那么调用不会传播到 subview Controller ,因此这可能就是您的 View 不旋转的原因。
关于iphone - willRotateToInterfaceOrientation 未被调用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1516268/