Hi,
I am trying to add iAds to my app…
I added the iAd Framework to my project and imported iAd/ADBannerView.h as well…
I have this code to create a ADBannerView object
[cpp]
ADBannerView *adView = [[ADBannerView alloc] initWithFrame:CGRectZero];
adView.frame = CGRectOffset(adView.frame, 0, -50);
[self.view addSubview:adView];
adView.delegate=self;
[super viewDidLoad];
[/cpp]
Now after creating an object of ADBannerView, there is this line [self.view addSubview:adView];
… My understanding is that views in iOS are somewhat analogous to what activities are in Android. Please correct me if I am wrong… So the above line just adds the banner view to the existing view,right?
My question is how do I know which is the existing view when the app is being run?? I mean is there some way I can access the view object?
Hope I made sense. I am very knew to Objective C so please forgive the noobness of the question [import]uid: 64174 topic_id: 34084 reply_id: 334084[/import]