简体   繁体   中英

iAd banner on iPhone 6 wrong size?

Ok so I'm upgrading my iOS app to take advantage of the iPhone 6's larger display but iAd is still showing ads of the iPhone 5s dimensions (both on the banner and when you select the advert).

There's an annoying blank space either side of the banner, and a full frame of blank space around the view when the advert is selected.

My app has a correct iPhone 6 launch image and is showing native resolution (no scaling). Grateful if anyone can give me a pointer as to where I am going wrong.

The iAd frame is configured and sized with this code and placed at the bottom of the screen:

[_UIiAd setFrame:(CGRectMake(0, screenHeight - 100, screenWidth, 50))];

It looks like this:

iAd Banner

It turns out that iAd is actually working fine, but Apple has not yet modified the dimensions of the test ad to suit the iPhone 6 and 6 Plus.

Update 25th Nov 2014 - Apple has now updated iAd banners to display the correct dimensions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM