Hi guys,
I have a tab bar application and would like to include an iad that remains in all views. So far I have had luck including individual iads (my coding is pasted below), but no luck following apples documentation. So far i have a variety of things in my app - and having no issues - just this iad issue now.
how on earth do i get the same iad to remain?
i would be grateful for any help on this one -- easy terms pls as im new to coding
thanks
Nate
---------------------------------------------------------------------------------
H VIEW:
#import <iAd/iAd.h>
@interface FirstViewController : UIViewController <ADBannerViewDelegate> {
}
@property (nonatomic, assign)BOOL bannerIsVisible;
@property (nonatomic, retain)IBOutlet ADBannerView *banner;
M VIEW:
#import "FirstViewController.h"
@implementation FirstViewController
@synthesize scrollView, banner, bannerIsVisible;
-(void)bannerViewDidLoad

ADBannerView *) abanner; {
if (!self.bannerIsVisible) {
[UIView beginAnimations:@"animatedAdBannerOn" context:NULL];
banner.frame = CGRectOffset(banner.frame, 0.0, 50.0);
[UIView commitAnimations];
self.bannerIsVisible = YES;
}
}
-(void)bannerView

ADBannerView *)adBanner didFailToReceiveAdWithError

NSError *)error {
if (!self.bannerIsVisible) {
[UIView beginAnimations:@"animatedAdBanneroff" context:NULL];
banner.frame = CGRectOffset(banner.frame, 0.0, -320.0);
[UIView commitAnimations];
self.bannerIsVisible = NO;
}
}