iOS 6 iAd property and methods deprecated

后端 未结 3 577
栀梦
栀梦 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:23

    It seems that landscape ads are somewhat phased out. See: http://www.iphonedevsdk.com/forum/iphone-sdk-development/108118-landscape-iad-banners-in-ios-6-edit-landscape-phased-out-completely.html

    It need further confirmation, as I could not find any Apple document regarding that change.

    0 讨论(0)
  • 2020-12-19 04:35

    I sAw 2 workaround there : http://www.touch-code-magazine.com/iad-code-is-broken-in-ios6/ Tested the first solution:

    easy temporary solution – you can quickly get your app to compile again by using a cheap cheat, add explicitly #import to the files where you are accessing currentContentSizeIdentifier and the size name constants. That should get you going until you alter your app to use the new auto-layout features.

    It works ok on xcode 4.5 (banner test ok).

    0 讨论(0)
  • 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]
    
    0 讨论(0)
提交回复
热议问题