dimanche 10 mai 2015

Remove iAd banner from just 1 scene

I have a basic game created with 3 scenes - Start, GameScene and Gameover Scene. I implemented iAd banners very easily using the below code. This was super simple for me as a beginner to do, however the banner ad seems to be impacting the frame rate during game play so I want it to be removed/hidden during the game scene. Is there any easy way to do this ?

override func viewDidLoad() {

       super.viewDidLoad()
      self.canDisplayBannerAds = true

Aucun commentaire:

Enregistrer un commentaire