gpt4 book ai didi

iphone - willRotateToInterfaceOrientation 未被调用

转载 作者:行者123 更新时间:2023-12-03 18:25:26 25 4
gpt4 key购买 nike

我在 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com