Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 6 iAd property and methods deprecated

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 ?

like image 371
Yaman Avatar asked Sep 24 '12 00:09

Yaman


2 Answers

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]
like image 119
Hari Padmanaban Avatar answered Oct 22 '22 17:10

Hari Padmanaban


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.

like image 40
Mickaël Rémond Avatar answered Oct 22 '22 15:10

Mickaël Rémond