iOS 6 iAd property and methods deprecated

后端 未结 3 584
栀梦
栀梦 2020-12-19 03:51

Since iOS 6 release, there are some iAd properties and methods that are deprecated like :

currentContentSizeIdentifier
requiredContentSizeIdentifiers
ADBanne         


        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-19 04:37

    I have my application only support Landscape mode(should work for Portrait mode also), and have iAd showing up on the top of the application. And to make this work with ios6 I had to do this:

    In Monotouch

    storesAdBannerView = new ADBannerView();
    storesAdBannerView.AutoresizingMask = UIViewAutoresizing.FlexibleWidth;
    

    For objc (which I dont use), I think it might be

    [storesAdBannerView setAutoresizingMask:UIViewAutoresizingFlexibleWidth]
    

提交回复
热议问题