iOS 6 iAd property and methods deprecated

Yaman picture Yaman · Sep 24, 2012 · Viewed 10.1k times · Source

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

currentContentSizeIdentifier
requiredContentSizeIdentifiers
ADBannerContentSizeIdentifierPortrait
ADBannerContentSizeIdentifierLandscape

So what's the best way to implement iAd now on both orientation ? Should we now resize the banner view frame manually ?

Answer

Hari Padmanaban picture Hari Padmanaban · Oct 14, 2012

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]