我想禁用 iPad 中某个 UIViewController 的旋转,但同时保留应用程序中的分割视图。
supportedInterfaceOrientations我知道我们可以在“常规”选项卡中选中“需要全屏”以触发调用委托方法shouldAutoRotation等,并且我可以在此处切换旋转。
supportedInterfaceOrientations
shouldAutoRotation
但我意识到,一旦我检查了这一点,应用程序就不再支持分割视图。有没有办法同时保持分割视图并控制某些 UIViewController 中的方向?
ipad ios swift
ios ×1
ipad ×1
swift ×1