Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在弹出窗口中有一个 UITableview。最初,弹出框以纵向显示,旋转到横向后,它会按预期消失。当旋转回纵向并导致弹出框再次呈现时,表格视图在弹出框内以横向模式显示。如何防止 tableview 旋转,或使其旋转回来?
在打开它的视图控制器中保留对弹出框的引用。该视图控制器将接收 willRotate 消息。您可以从那里关闭弹出窗口。