Hi,
I have a problem to open a StorePruduct.
my App running only in landscape orientation and I have this Code in my GLKViewController:
func showStoreProduct() {
let productParameters = [SKStoreProductParameterITunesItemIdentifier : currentAppId]
let storeViewController:SKStoreProductViewController = SKStoreProductViewController()
storeViewController.delegate = self
storeViewController.loadProductWithParameters(productParameters, completionBlock: { (success: Bool, error: NSError?) -> Void in
if success {
self.presentViewController(storeViewController, animated: true, completion: nil)
} else {
print("ERROR: storeViewController: \(error)")
}
})
}
func productViewControllerDidFinish(viewController: SKStoreProductViewController) {
viewController.dismissViewControllerAnimated(true, completion: nil)
}until yesterday code works fine.
Today always comes the error:
Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and [SKStoreProductViewController shouldAutorotate] is returning YES'
Can someone please tell me what I’m doing wrong here ?