简体   繁体   English

当IAD BannerView没有广告展示时如何删除空白

[英]How to remove white space when iad bannerview has no ad to show

Itunes Connect showed me the following error when I submitted my app: 提交我的应用程序时,Itunes Connect向我显示了以下错误:

We found the following issues with the user interface of your app: 我们发现您的应用程序的用户界面存在以下问题:

  • Was not fully optimized to support the device screen size and/or resolution; 未完全优化为支持设备屏幕尺寸和/或分辨率; when the user proceeds to the quiz questions, the app displays a large unused white space at the bottom of the screen that appears to be originally intended for ads. 当用户继续进行测验问题时,该应用程序会在屏幕底部显示一个大的未使用的空白区域,该空白区域似乎最初是用于广告的。 However, at the time of review, no ads are displayed, and this area remains blank, which displays poorly on the user's device. 但是,在审核时,没有广告显示,并且该区域保持空白,这在用户设备上显示不佳。

If there is no intended use for this area, it may be appropriate to ensure that the main UI window for the quiz questions fully fills up the screen for an optimal viewing experience. 如果该区域没有预期的用途,则应确保测验问题的主UI窗口完全填满屏幕,以获得最佳的观看体验。

This example identifies types of issues discovered in your app but may not represent all such issues. 本示例确定了在您的应用中发现的问题类型,但可能并不代表所有此类问题。 It would be appropriate to thoroughly evaluate your app to address these types of issues. 彻底评估您的应用以解决这些类型的问题是适当的。

I have 6 of these applications, and they all have the exact same error. 我有6个这样的应用程序,它们都有完全相同的错误。 Application only in portrait orientation. 仅以纵向方向应用。 I created a simple application test , people answer questions and show the results in the end . 我创建了一个简单的应用程序测试,人们回答问题并最终显示结果。 All windows are identical , a common background and different questions , one question on one window . 所有的窗口都是相同的,具有共同的背景和不同的问题,一个窗口上有一个问题。 At the bottom I attached iad bannerview. 在底部,我附加了iad bannerview。 I used autolayout for all windows, buttons, labels , etc. On all kinds of simulators advertising is displayed .The app is free and if I remove my ad as offers , the application will not make sense. 我在所有窗口,按钮,标签等上都使用了自动布局。在各种模拟器上都会显示广告。该应用程序是免费的,如果我将广告作为报价删除,则该应用程序将无意义。 Maybe there is some option or code that was not a white space where there is no advertising . 也许有些选项或代码不是没有广告的空白。

To use iAd, you have to set up iAd in iTunes Connect, and get the iAd Contract. 要使用iAd,您必须在iTunes Connect中设置iAd,并获得iAd合同。 Read more in the tutorial below. 在下面的教程中阅读更多内容。

http://codewithchris.com/iad-tutorial/ http://codewithchris.com/iad-tutorial/

It shows how to hide the banner when not in use, and how to connect it properly. 它显示了不使用时如何隐藏标语,以及如何正确连接标语。

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

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