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