- Home /
iAd hide/show problem
I am able to get my iAd to display at the bottom of the screen. My game is in a single scene and the flow is like Main Menu -> Game -> Game over Screen.
I show the ad on the main menu, hide it during game play and show again on the game over screen. This works fine the first time but after the Game over when I reload the scene and start from the Game the ad does not disappear. I'm setting the banner's visible property to false but nothing happens.
Any thoughts?
I had this problem too but I can't remember if it was with iAd or Admob since I used both. Anyway the concept should be the same so I don't think it matters, but what I did to fix it was destroy the banner not hide it because for some reason when you initialize a banner it doesn't go away until it is destroyed. Unfortunately I can't remember why it doesn't go away but the destroy took care of that. Then when the player came back to the main menu the banner was recreated and everything worked. Those are my thoughts, hopefully it helps some at least.