我有一些麻烦(错误:方法不覆盖任何方法从它的超类)重写UIVC方法,我做错了什么?UIVIevController覆盖
代码示例与supportedInterfaceOrientation,它不会导致错误,但仍然不重写和不工作。
func supportedInterfaceOrientations() -> UIInterfaceOrientationMask{
return UIInterfaceOrientationMask(rawValue:(UIInterfaceOrientationMask.portrait.rawValue | UIInterfaceOrientationMask.landscape.rawValue))}
截图问题 enter image description here