【发布时间】:2015-01-30 08:41:25
【问题描述】:
我有一个控制器,其中:
modalPresentationStyle = .Custom
我需要为此视图控制器使用纵向界面方向或禁用旋转。在这样的方法中:
supportedInterfaceOrientations(), shouldAutorotate()
我返回了所需的值,但它们什么都不做,控制器在出现时仍会旋转。当我使用某些系统默认的 modalPresentationStyle 时,会出现预期行为。
【问题讨论】:
标签: ios iphone cocoa-touch ios8