this code working in ios 8 not in ios 9.
after upgrading ios9 , later iads not showing up. apple issue or there other way implement it.please post replies
import uikit import iad class viewcontroller: uiviewcontroller,adbannerviewdelegate { @iboutlet var adsbannerview: adbannerview! override func viewdidload() { super.viewdidload() adsbannerview.hidden = true self.candisplaybannerads = true } func bannerview(banner: adbannerview!, didfailtoreceiveadwitherror error: nserror!) { nslog("error") } func bannerviewwillloadad(banner: adbannerview!) { } func bannerviewdidloadad(banner: adbannerview!) { adsbannerview.hidden = true } func bannerviewactionshouldbegin(banner: adbannerview!, willleaveapplication willleave: bool) -> bool { return true } }
Comments
Post a Comment