Is it allowed to hide iAds even when they are available?

℡╲_俬逩灬. 提交于 2019-12-11 23:25:02

问题


I need to hide iAds depending on certain conditions, regardless their availability. So, I was wondering if my app would be rejected in the case where I hide the iAd, even when there's an iAd being displayed.


回答1:


iAds will not work if their alpha is set to anything other than 1, so you could simply use this code to turn them off:

    ADBannerView *banner;
    [banner setAlpha:0];

This is how you would remove ads in apps, too, so your app will not get rejected for doing this - again, iAds do NOT display if the alpha is set to anything other than 1, so you can't hide an iAd and have it be displayed at the same time - pretty much, when you hide an iAd it is about the equivalent to the user not having any internet connection, and the iAd being hidden.



来源:https://stackoverflow.com/questions/20577465/is-it-allowed-to-hide-iads-even-when-they-are-available

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