iAd left white blank screen after closed

后端 未结 3 2017
时光说笑
时光说笑 2021-01-06 18:20

I got a problem to integrate iAd in my iPhone apps -- the banner ad is fine when it expends (see http://www.clingmarks.com/iAd1.png and http://www.clingmarks.com/iAd2.png),

3条回答
  •  时光取名叫无心
    2021-01-06 18:32

    When the banner finishes, it moves itself to the top of the screen even if that means having a negative y coordinate. I center the banner when it finishes. In my case there is a view controller for just the banner, so it is only full screen when the ad is clicked.

    -(void) bannerViewActionDidFinish:(UIView *)inBanner {
        CGRect                      frame = [inBanner frame];
    
        frame.origin.x = frame.size.width * 0.5;
        frame.origin.y = frame.size.height * 0.5;
    
        [inBanner setCenter:frame.origin];
    }
    

提交回复
热议问题