szu*_*rse 3 screen-orientation ios swift
我将此代码放到UIViewController子类中:
override func shouldAutorotateToInterfaceOrientation(toInterfaceOrientation: UIInterfaceOrientation) -> Bool {
return true
}
Run Code Online (Sandbox Code Playgroud)
我得到这个编译时错误:
无法覆盖已标记为"不可用"的"shouldAutorotateToInterfaceOrientation"
有什么问题?我怎么能解决这个问题?
| 归档时间: |
|
| 查看次数: |
3453 次 |
| 最近记录: |