Ads in whole app iPhone problem
- by lars
I am using mobclix together with admob. The code is to big to add it in all classes.
So i created a new class: Ads
Everytime i want an ad in a view, i have to send the view to the ad class:
- (void)initAd:(UIView *) pView {
NSLog(@"ads init");
self.loadedView = pView;
.....
To create an ad in a class:
Ad* ad = [Ads new];
[ad initAd:self.view];
I dont know if thats the right way.
I have to create a new Ads object everytime i change a view (or class).
Is there a way to always have an Ads instance running, or is there another better way?
Thanks alot!!