¡@

Home 

2014/10/15 ¤U¤È 10:03:31

iphone Programming Glossary: adwhirlsingleton

is it a good practice to delete the AdBannerView on viewWillDisappear and add it back on viewWillAppear?

http://stackoverflow.com/questions/9422177/is-it-a-good-practice-to-delete-the-adbannerview-on-viewwilldisappear-and-add-it

automatically removes it from the previous view. This is for adWhirl but you should be able to adopt it for just iAD. adWhirlSingleton.h #import Foundation Foundation.h #import AdWhirlDelegateProtocol.h #import AdWhirlView.h @interface adWhirlSingleton NSObject.. adWhirlSingleton.h #import Foundation Foundation.h #import AdWhirlDelegateProtocol.h #import AdWhirlView.h @interface adWhirlSingleton NSObject AdWhirlDelegate AdWhirlView awView UIViewController displayVC @property strong nonatomic AdWhirlView awView @property.. @property strong nonatomic UIViewController displayVC id sharedAdSingleton void adjustAdSize CGFloat x CGFloat y @end adWhirlSingleton.m #import adWhirlSingleton.h @implementation adWhirlSingleton static adWhirlSingleton _sharedAdSingleton nil @synthesize..