sprite kit - How to remove ADBannerView in Swift -
i creating spritekit game multiple scenes. want remove ad once users starts play actual game, create ad when user transitions gameover scene. hiding adbannerview not work, not reappear once user loses again.
so how remove adbannerview?
try use nsnotification in gameviewcontroller, this:
func hideadbanner(notification: nsnotification) { println("hiding banner") adbanner.alpha = 0 adbanner.hidden = true } override func viewdidload() { super.viewdidload() nsnotificationcenter.defaultcenter().addobserver(self, selector: "hideadbanner:" , name: "hideadbanner", object: nil) } then call nsnotification in scene
Comments
Post a Comment