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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-06-2010, 07:52 AM   #1 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 32
Trent McDougall is on a distinguished road
Default iAd Banner wont hide.

Hey everyone,

Im having trouble getting my adbannerview to hide when a ad fails to load. I've added the banner in IB and linked its delegate to files owner and conformed that class to ADBannerViewDelegate. Im also implementing this delegate method

Code:
- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error {
	if (self.bannerIsVisible)
	{
		[UIView beginAnimations:@"animateAdBannerOff" context:NULL];
		banner.frame = CGRectOffset(banner.frame, 0, 50);
		[UIView commitAnimations];
		self.bannerIsVisible = NO;
	}
}
This works on the simulator when i turn off my internet connection but on my iphone when i go into aeroplane mode this method never even gets called. Im also finding that bannerViewDidLoadAd doesnt get called either.

anyone else experiencing this? anyone know how to fix it?
__________________
Check out the Pokedex Plus. The ultimate app for all things Pokemon. Check it out here.

Last edited by Trent McDougall; 07-06-2010 at 07:54 AM.
Trent McDougall is offline   Reply With Quote
Old 07-06-2010, 08:04 AM   #2 (permalink)
Daddy Cool
iPhone Dev SDK Supporter
 
MarkC's Avatar
 
Join Date: Mar 2009
Location: Yorkshire, England
Age: 100
Posts: 1,616
MarkC is on a distinguished road
Default

There's been quite a few discussions on this already, both on here, and on the official Apple Dev forums.
MarkC is offline   Reply With Quote
Old 07-06-2010, 11:06 AM   #3 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 32
Trent McDougall is on a distinguished road
Default

Quote:
Originally Posted by MarkC View Post
There's been quite a few discussions on this already, both on here, and on the official Apple Dev forums.
True but none of them have given me a solution that works.
__________________
Check out the Pokedex Plus. The ultimate app for all things Pokemon. Check it out here.
Trent McDougall is offline   Reply With Quote
Old 07-07-2010, 09:12 PM   #4 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 32
Trent McDougall is on a distinguished road
Default

I have done everything i have read in other posts and yet it still wont hide on my device
__________________
Check out the Pokedex Plus. The ultimate app for all things Pokemon. Check it out here.
Trent McDougall is offline   Reply With Quote
Old 07-08-2010, 10:40 AM   #5 (permalink)
Registered Member
 
Join Date: Dec 2009
Location: Benicia, CA
Age: 50
Posts: 152
That Don Guy is on a distinguished road
Default

Instead of airplane mode, did you try turning the Wi-Fi setting off on your device? (Or is that what you meant by "aeroplane mode" - I thought that was a separate setting?)

It could be that "airplane mode" ignores ad banners, in which case you may need to start with your ad banner "hidden" in, say, viewDidLoad.

-- Don
That Don Guy is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 327
8 members and 319 guests
anothermine, Chickenrig, firecall, givensur, iNet, michaelhansen, PixelInteractive, stanny
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,892
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:28 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0