Posts

Showing posts with the label ios9

Cannot disabled rotation on iPad

Image
Cannot disabled rotation on iPad The App has been released to public for months without any problem. But recently I found it can rotate screen on iPad when running iOS 9 or later. And it works without such problem on iPhone. Is it a bug of iOS 9? or I make something wrong? override func supportedInterfaceOrientations() -> UIInterfaceOrientationMask { return UIInterfaceOrientationMask.Portrait } override func shouldAutorotate() -> Bool { return false } Can you choose the "Devices" is "iPad", and what is "Device Orientation" show up? – anhtu Oct 24 '15 at 2:11 @anhtu Wow, you're right! The problem solved. It's been working good on iOS 8, so I thought it as a correct setting ;-( . Can you post the answer in "Answer Your Question" so that I can accept ...