Is it a problem when an iAd may be obscured?

后端 未结 8 2385
执笔经年
执笔经年 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 05:55

    I had code like this:

    if (animate)
    {
        [UIView animateWithDuration:0.5 animations:^{
            self.adBannerView.frame = adBannerFrame;
            self.otherViewFrame.frame = otherViewFrame;
            }
         ];
    }
    else
    {
        self.adBannerView.frame = adBannerFrame;
        self.otherViewFrame.frame = otherViewFrame;
    }
    

    and after some experimenting, I found that the order of the initializations should be reversed in both if and else legs.

        self.otherViewFrame.frame = otherViewFrame;
        self.adBannerView.frame = adBannerFrame;
    

    So the idea was not to let another view cover the AdBannerView, even for a few microseconds.

提交回复
热议问题