Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 02-14-2010, 03:45 PM   #7 (permalink)
hstaniloff
Registered Member
 
Join Date: Apr 2009
Location: Setauket, NY
Posts: 133
Default

Quote:
Originally Posted by tsansone View Post
Hello, I am very new at developing for the iphone but have managed to get the AdMob code working in my normal views. But a portion of my app is in Tables. When I add the code to the tables it does work but the first record is always cut off. I tried using your method from above, but I think some steps were left out.

I am getting the following errors after using your code:

error: 'adMobAd' undeclared (first used in this function)
error: 'AdMobView' undeclared (first used in this function)
error: request for member 'tableView' in something not a structure or union.

Any help would be appreciated.. Baby steps would help too

Thanks
It looks like you didn't declare anything in your .h file!
Something like this might help:

Code:
#define AD_REFRESH_PERIOD 60.0 // display fresh ads once per minute

#import <UIKit/UIKit.h>
#import "AdMobDelegateProtocol.h";
@class AdMobView;

@interface AdViewController : UIViewController<AdMobDelegate> {

  AdMobView *adMobAd;  // the actual ad; self.view is a placeholder to indicate where the ad should be placed; intentially _not_ an IBOutlet
  NSTimer *refreshTimer; // timer to get fresh ads

}

- (void)refreshAd:(NSTimer *)timer;

@end
Take a look at the AdMob sample app that comes with their SDK. That will help a lot.
hstaniloff is offline   Reply With Quote
 

» Advertisements
» Online Users: 370
18 members and 352 guests
acegames, ADY, apatsufas, BdR, catedawn, ChenXin, gagack, georg8betx, iph_s, joeallenpro, john love, MarkC, RoryHarvey, sadr1an1, technovelty, thebinaryfamily, zacharyse, zbynda
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,875
Threads: 89,225
Posts: 380,699
Top Poster: BrianSlick (7,129)
Welcome to our newest member, georg8betx
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:05 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.