Is it a problem when an iAd may be obscured?

后端 未结 8 2363
执笔经年
执笔经年 2021-02-13 05:17

I added the ADBannerView to a view and when I load the app I get the following message:

ADBannerView: WARNING A banner view (0x7a023c0) has an ad but may be obscured. Th

8条回答
  •  花落未央
    2021-02-13 06:03

    Another option is to listen for status bar resize events and move the iAd when that happens so that it isn't respositioned offscreen (resulting in that warning and no served Ads).

    In your app delegate, tap into this function:

    • (void)application:(UIApplication *)application willChangeStatusBarFrame:(CGRect)newStatusBarFrame // Check newStatusBarFrame.size.height and animate your iAd frame up or down accordingly.

提交回复
热议问题