Discussion Forums  >  Uncategorized

Replies: 11    Views: 528

hacerapps
buzztouch Evangelist
Profile
Posts: 542
Reg: Jan 30, 2011
usa
11,170
04/16/11 09:32 PM (14 years ago)

iads i think i almost have it need some help from u guys

iads i think i almost have it need some help from u guys watch this video http://www.youtube.com/watch?v=cM9DqJmj45g and i came out with this http://anunciate-aqui.com/wp-content/uploads/2011/04/11.png
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/16/11 10:38 PM (14 years ago)
What are you asking?
 
hacerapps
buzztouch Evangelist
Profile
Posts: 542
Reg: Jan 30, 2011
usa
11,170
like
04/16/11 11:19 PM (14 years ago)
if i click on the add nothing happens it goes under the menu
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/16/11 11:27 PM (14 years ago)
I realize it's not working.... what is your question? We can't help you fix something we didn't create because there isn't anyway for us to 'guess' what's going on with your custom code.
 
hacerapps
buzztouch Evangelist
Profile
Posts: 542
Reg: Jan 30, 2011
usa
11,170
like
04/16/11 11:35 PM (14 years ago)
sorry again david really new to this i did exactly what the kid was doing on the video tutorial BT_screenmenulist.h add #import <iAd/iAd.h> ADBannerView *adView; BOOL bannerIsVisible; @property (nonatomic,assign) BOOL bannerIsVisible; BT_screenmenulist.m @synthesize bannerIsVisible; - (void)bannerViewDidLoadAd:(ADBannerView *)banner { if (!self.bannerIsVisible) { [UIView beginAnimations:@animateAdBannerOn context:NULL]; // banner is invisible now and moved out of the screen on 50 px banner.frame = CGRectOffset(banner.frame, 0, 50); [UIView commitAnimations]; self.bannerIsVisible = YES; } } - (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error { if (self.bannerIsVisible) { [UIView beginAnimations:@animateAdBannerOff context:NULL]; // banner is visible and we move it out of the screen, due to connection issue banner.frame = CGRectOffset(banner.frame, 0, -50); [UIView commitAnimations]; self.bannerIsVisible = NO; } } - (BOOL)bannerViewActionShouldBegin:(ADBannerView *)banner willLeaveApplication:(BOOL)willLeave { NSLog(@Banner view is beginning an ad action); BOOL shouldExecuteAction = YES; if (!willLeave && shouldExecuteAction) { // stop all interactive processes in the app // [video pause]; // [audio pause]; } return shouldExecuteAction; } - (void)bannerViewActionDidFinish:(ADBannerView *)banner { // resume everything you've stopped // [video resume]; // [audio resume]; } - (void)viewDidLoad { [super viewDidLoad]; adView = [[ADBannerView alloc] initWithFrame:CGRectZero]; adView.frame = CGRectOffset(adView.frame, 0, -50); adView.requiredContentSizeIdentifiers = [NSSet setWithObject:ADBannerContentSizeIdentifier320x50]; adView.currentContentSizeIdentifier = ADBannerContentSizeIdentifier320x50; [self.view addSubview:adView]; adView.delegate=self; self.bannerIsVisible=NO; [super viewDidLoad]; - (void)didReceiveMemoryWarning { // Releases the view if it doesn't have a superview. [super didReceiveMemoryWarning]; // Release any cached data, images, etc that aren't in use. } - (void)viewDidUnload { // Release any retained subviews of the main view. // e.g. self.myOutlet = nil; } - (void)dealloc { [super dealloc]; adView.delegate=nil; [adView release]; }
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/17/11 12:23 AM (14 years ago)
You could try a few things. The idea is to figure out why the adView you're creating is hiding when you tap on it. I would being by putting an NSLog() statement in each banner ad method so you can figure out which methods are being triggered. Put NSLog(@'ad loaded') and NSLog(@'ad failed to load') and NSLog(@'bannerViewActionDidFinish') in each method. Then look at the console when it's running. The code you posted above is intentionally hiding the adView if there is an error. If it's an issue of an ad-loading error, that's one thing... an issue of it being in the wrong place is another. Note: You have [super viewDidLoad] called twice. Remove the first one of these in the viewDidLoad method.
 
hacerapps
buzztouch Evangelist
Profile
Posts: 542
Reg: Jan 30, 2011
usa
11,170
like
04/17/11 12:49 AM (14 years ago)
thanks david goin to try that now
 
Redbullet
Aspiring developer
Profile
Posts: 42
Reg: Mar 05, 2011
Earth
3,170
like
04/24/11 07:33 PM (14 years ago)
hi st726, have you managed to make it work? hope you could share on how to do it, thanks!
 
hacerapps
buzztouch Evangelist
Profile
Posts: 542
Reg: Jan 30, 2011
usa
11,170
like
04/24/11 08:42 PM (14 years ago)
nop sorry ,i am not that good i am waiting that guru david save us trust me if i do get it to work i will share it
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/25/11 12:11 AM (14 years ago)
LOL. About 10 days aways (if our last Ad Partner comes through!) from iAd support. No worries, we'll get you guys going ;-)
 
basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
like
05/17/11 04:15 PM (14 years ago)
please keep me posted on this!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
05/17/11 10:53 PM (14 years ago)
iAd's is supported in the latest release (availalbe now). Have a look at the release notes in the control panel.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.