2012-09-26 16 views

回答

-1

風景模式沒有被棄用僅

-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 

已棄用的方法。現在你可以使用下面的方法: -

- (BOOL)shouldAutorotate 
{ 
    return YES; 
} 
- (NSUInteger)supportedInterfaceOrientations 
{ 
    return  UIInterfaceOrientationMaskAll; 
} 
+0

我不認爲你的答案與問題有任何關係。這是關於iAd和不推薦使用的屬性。請參閱:http://developer.apple.com/library/ios/#DOCUMENTATION/UserExperience/Reference/ADBannerView_Ref/DeprecationAppendix/AppendixAdprepreatedAPI.html#//apple_ref/doc/uid/TP40009562-AppendixA –

+0

@啓動您的問題行.my ans將基於當前蘋果不推薦的橫向模式不在iAd中。 – Bajaj

+0

我知道定位方法被替換爲新的。但我的問題是如何在橫向模式下使用iAds – Gamer