简体   繁体   English

iPhone 6上的iAd横幅尺寸错误?

[英]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). 好吧我正在升级我的iOS应用程序以利用iPhone 6更大的显示器,但iAd仍然显示iPhone 5s尺寸的广告(横幅和选择广告时)。

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). 我的应用程序具有正确的iPhone 6启动图像,并显示原始分辨率(无缩放)。 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: iAd框架使用此代码进行配置和调整,并放置在屏幕底部:

[_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. 事实证明,iAd实际上工作正常,但Apple还没有修改测试广告的尺寸以适应iPhone 6和6 Plus。

Update 25th Nov 2014 - Apple has now updated iAd banners to display the correct dimensions. 201411月25日更新 - Apple现已更新iAd横幅以显示正确的尺寸。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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