¡@

Home 

2014/10/15 ¤U¤È 10:04:29

iphone Programming Glossary: awview

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

AdWhirlDelegateProtocol.h #import AdWhirlView.h @interface adWhirlSingleton NSObject AdWhirlDelegate AdWhirlView awView UIViewController displayVC @property strong nonatomic AdWhirlView awView @property strong nonatomic UIViewController displayVC.. NSObject AdWhirlDelegate AdWhirlView awView UIViewController displayVC @property strong nonatomic AdWhirlView awView @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 awView displayVC id sharedAdSingleton @synchronized self if _sharedAdSingleton _sharedAdSingleton self alloc init return _sharedAdSingleton..