ios - Xcode 7.3.1 Working with iAd Bannerviews Objective-C -
after following countless tutorials , trying different methods, iad banners not show while running simulation, , if do, fade without displaying anything.
this current code using display iad banner:
-(void)bannerviewdidloadad:(adbannerview *)banner { [uiview beginanimations:nil context:null]; [uiview setanimationduration:1]; [banner setalpha:1]; [uiview commitanimations]; } -(void)bannerview:(adbannerview *)banner didfailtoreceiveadwitherror:(nserror *)error { [uiview beginanimations:nil context:null]; [uiview setanimationduration:1]; [banner setalpha:0]; [uiview commitanimations]; }
i have delegated banner view, have imported iad framework in viewcontroller.h, , followed other necessary steps. however, while launching simulator (in phone size) ad not appear, after waiting considerable amount of time. have no errors or other indications have done wrong, , have been stuck on while. why won't banner show?
Comments
Post a Comment