iAd banner content Size .. (iAd Support with iOs 4.2 for iPad)

不想你离开。 提交于 2019-12-04 08:46:23

Before I answer this question, I have to remind you that 4.2 beta is under NDA.

I can say that if you look at the API diffs for 4.2 under iAd.framework, you'll see that ADBannerContentSizeIdentifier480x32 has been deprecated and replaced.

Regardless of the device, ads will be the width of the screen. There is no way around this.

Apple's view on iAds is that they should cover either the top or bottom 10% of the screen. Period. In simpler terms, you cannot specify the size of a banner view.

Starting with iOS 6 ADBannerContentSizeIdentifiers are deprecated, instead use something like this, as per iOS Docs...

CGSize adSize = [bannerView sizeThatFits:self.view.frame.size];
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!