ios - iAd interfering with my SKScene class -
Sorry, the title of this question is somewhat unclear
I have a spritekit game that is a The view is launched through the controller. I also have an iAd that is displayed through the same view controller when the game is stopped, IAD is displayed, and when the game is not paused, I send the NS encryption to the View Controller to hide the IAD .
My problem comes when a user presses the iAd if IAD is blocked when the game is stopped, and the game can be un-imposed by tapping on the screen screen. Therefore, when the user clicks on iAd (when the game is paused), the IAD opens on full screen, while the game pauses itself
I need a way in which I have my own view controller I can tell that when iAd is displayed, no touch in any particular CGMCact (frame where IAD is displayed) should not be received by SKN.
How can I do this?
If your view is the AdBannerViewDelegate
protocol representing the view banner, Code> BOOL ivar can apply to _bannerIsActive
in the view. Then:
- (BOOL) BannerViewctionSoldBangin: (ADBnarView *) Banner Will Will Levievation: (BLOL) Will Go Will {_bannerIsActive = YES; Yes come back }
In your un-paused logic, you will need to check the BOOL and start the game only if _bannerActive == No
.
And of course you do not need to set it when the banner finishes its action:
_bannerIsActive = NO; }
Comments
Post a Comment