shouldautorotate

Set shouldAutorotate to false with Photolibrary

女生的网名这么多〃 提交于 2019-12-07 02:48:20
问题 If I add a popover with access to my photo gallery from the iPad the system always crash with the following message: Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and [PUUIAlbumListViewController shouldAutorotate] is returning YES' But I already set up in my Projekt Information just to support Landscape Mode. So I added the following function override func shouldAutorotate()

Set shouldAutorotate to false with Photolibrary

不问归期 提交于 2019-12-05 05:14:04
If I add a popover with access to my photo gallery from the iPad the system always crash with the following message: Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and [PUUIAlbumListViewController shouldAutorotate] is returning YES' But I already set up in my Projekt Information just to support Landscape Mode. So I added the following function override func shouldAutorotate() -> Bool { return false } But I don't know how to use it? If I enable UIInterfaceOrientationPortrait on