iAd left white blank screen after closed

后端 未结 3 2000
时光说笑
时光说笑 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:49

    Hey David! I know what you mean, I'm also using an own AdvertisementViewController which calls different ad networks.

    So iAd is not in a full screen view but inside a 320x50 view.

    Simply do this:

    -(void) bannerViewActionDidFinish:(ADBannerView *)inBanner {
    
    [self.view setFrame:CGRectMake(0.0f, 0.0f, 320.0f, 50.0f)];
    
    }
    

    So the outer view container (self.view) is resized to its original size. iAd is resizing it to fullscreen for displaying the ad when an iAd is shown.

提交回复
热议问题