问题描述
我需要根据某些条件隐藏iAd,无论它们是否可用.因此,我想知道在隐藏iAd的情况下我的应用程序是否会被拒绝,即使正在显示iAd.
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.
推荐答案
如果iAd的Alpha值设置为非1,则iAd将不起作用,因此您可以简单地使用以下代码将其关闭:
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];
这也是您在应用中删除广告的方式,因此您的应用不会因此遭到拒绝-同样,如果Alpha设置为除1以外的任何值,iAd不会显示,因此您无法隐藏iAd并同时显示它-差不多,当您隐藏iAd时,它等同于用户没有任何互联网连接并且iAd被隐藏了.
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.
这篇关于即使有iAd,也可以隐藏它们吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!