标签: ios swift orientation screen-orientation
我尝试了以下代码
override func shouldAutorotate() -> Bool { return false } override func supportedInterfaceOrientations() -> UIInterfaceOrientationMask { return UIInterfaceOrientationMask.Portrait }
此代码无效。请帮帮我