objective c - iAd implementation inside swipe recognizer -



objective c - iAd implementation inside swipe recognizer -

my app build uiswipegesturerecognizer - changes text on screen , background color when swipe either side made. right can create iad run on startup of app, , hide when it's not loading. have code run every swipe - otherwise believe number of swipes still count 1 view(?)

i have been using code, runs advertisement bannerview i've dragged storyboard:

#pragma mark iad delegate methods -(void) bannerviewdidloadad:(adbannerview *)banner { [uiview beginanimations:nil context:nil]; [uiview setanimationduration:1]; [banner setalpha:1]; [uiview commitanimations]; } -(void) bannerview:(adbannerview *)banner didfailtoreceiveadwitherror:(nserror *)error { [uiview beginanimations:nil context:nil]; [uiview setanimationduration:1]; [banner setalpha:0]; [uiview commitanimations]; }

objective-c

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -