Hide/Show iAds in Spritekit

前端 未结 3 2008
忘了有多久
忘了有多久 2020-12-17 01:28

I\'ve been trying to figure out how to hide and show iAds in my Spritekit Scenes. Currently I have it setup like this:

ViewController.h



        
3条回答
  •  [愿得一人]
    2020-12-17 02:15

    Of course, there are 2 object and why you think it can do?

    If you want to access the parent of skscene just do this

    UIViewController *vc = self.view.window.rootViewController;

    You can access the parent of this skscene and you can do hideBanner at the parent of this scene. Simple?

提交回复
热议问题