问题:
如果用户没有登录GameCenter帐户,则会在纵向模式下启动GameCenter身份验证视图(在iOS 5中存在模态对话框),要求进行登录。但是,如果我在xcode中禁用了竖屏模式(项目摘要)或在supportedInterfaceOrientationsForWindow:中禁用了它(因为我的应用程序仅在横向模式下运行),则会出现以下错误:
Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES'
如果我为iPad / iPhone启用Portrait模式(和/或注释掉supportedInterfaceOrientationsForWindow:),则可以正常工作,但我不想启用Portrait模式。