2
嗨我有我的景观只有应用程序。我加入的iAd它和我点击测试与此错误iAd仅适用于景观应用程序投掷错误
*** Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES'
加我的应用程序崩溃在我的应用程序的委托,我有
_bannerView.requiredContentSizeIdentifiers = [NSSet setWithObjects: ADBannerContentSizeIdentifierLandscape, nil];
,并在我的VC我又设置
[_bannerView setCurrentContentSizeIdentifier:ADBannerContentSizeIdentifierLandscape];
为了让我的应用程序只解构我
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
请提出这里有什么问题。
可能不会解决它,但它会让你的应用更讨人喜欢;使用'return UIInterfaceOrientationIsLandscape(interfaceOrientation);否则将忽略2个横向方向中的1个。 – Max 2012-08-03 23:28:09
先生我希望我的应用只能以一种方向运行,但这是我点击广告时应用崩溃的原因吗? – 2012-08-04 06:32:29
报告的错误声称您的应用程序试图以无效方向运行。您是否碰巧允许Info.plist中的左侧方向? – 2012-08-04 08:34:40