Taking an iAd across multiple screens

前端 未结 2 926
长发绾君心
长发绾君心 2021-01-03 13:33

I\'m sure there\'s a simple answer to this but it\'s beginning to annoy me now!

I have an iAd integrated into my app which appears and works on the screen I\'ve impl

相关标签:
2条回答
  • 2021-01-03 14:23

    It sounds like you're not removing your iAds when views hide. I suggest doing the creation in viewWillAppeaer and removing ads in the viewDidDisappear method. Like this, you'l only end up with as many banners as you create in the visible view. It sounds like you're using the viewdidLoad/viewWillUnload pair instead.

    0 讨论(0)
  • 2021-01-03 14:24

    Another alternative is to create the ADBannerView in a fixed location across all screens. It's a little bit harder than the above method, but it looks nice. For example, if you have a tab bar controller application, you can do the following in your app delegate:

        [self.myTabBarController.view addSubview:self.myAdView];
    

    It can get a little bit tricky to place other views underneath the ad.

    0 讨论(0)
提交回复
热议问题