jdleung
jdleung

Reputation: 1098

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
}

enter image description here

Upvotes: 1

Views: 442

Answers (1)

tuledev
tuledev

Reputation: 10317

If the Devices is Universal, it doesn't show the Orientation for both iPhone and iPad.

You should choose Devices is iPad, and set up Device Orientation.

Upvotes: 2

Related Questions