ios - AdMob banner: switching segues unexpectedly found nil -


whenever try switch between view controller, error occurs shows "unexpectedly found nil while trying unwrap optional value," i'm not sure optional value , why happening. have no disconnected outlets or actions. please help. here code below.

@iboutlet weak var bannerad: gadbannerview!  override func viewdidload() {     super.viewdidload()      let request = gadrequest()     request.testdevices = [kgadsimulatorid]      bannerad.adunitid = "ca-app-pub-9568449419156331/5920536324"     bannerad.rootviewcontroller = self     bannerad.delegate = self as? gadbannerviewdelegate     bannerad.load(request)  } 

this swift 3, xcode 8. please help:) in advance!


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -