Hi I am just converting my project to iOS9 Swift 2
After correcting 152 error and getting the project to assemble I now find that supportedInterfaceOrientations is not being called in my GameViewController.
override func supportedInterfaceOrientations() -> UIInterfaceOrientationMask {
if UIDevice.currentDevice().userInterfaceIdiom == .Phone {
return [UIInterfaceOrientationMask.Portrait, UIInterfaceOrientationMask.PortraitUpsideDown]
} else {
return [UIInterfaceOrientationMask.Portrait, UIInterfaceOrientationMask.PortraitUpsideDown]
}
}
As setting the masks has no effect on the rotation.
I started a new SKSprite project with xcode 7 Version 7.0 (7A220) and found the same thing wrong. supportedInterfaceOrientations is not called in the example and changing the bits has no effect.
Any help would be great !!!!!!!!!
More info
It is only called if it is on an iPhone setting NOT working on iPad air iPad air 2 WORKS on iPad 2 & iPad Retina