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 01-05-2011, 11:24 AM   #1 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 5
johnohollaren is on a distinguished road
Default Delegate Serving Multiple Views?

Long time reader, first time poster! I have a question about App Delegates. In my app delegate I begin my Mobclix implementation like so:

Code:
[Mobclix startWithApplicationId:@"myAppID"];
I then proceed to implement Mobclix in my view controllers with the following:

Code:
self.adView = [[[MobclixAdViewiPhone_320x50 alloc] initWithFrame:CGRectMake(0.0f, 410.0f, 320.0f, 50.0f)] autorelease];
My problem is this that this only works in the root view controller. In all the other view controllers in my application, the code above will not produce Mobclix test ads.

How can I make it so I receive test ads in all the view controllers, not just the root one?
johnohollaren is offline   Reply With Quote
Old 02-08-2012, 06:37 PM   #2 (permalink)
Registered Member
 
Join Date: Feb 2012
Posts: 1
iNepali is on a distinguished road
Default

I added following lines after once I add adView into the main view.

[self.youAdView resumeAdAutoRefresh]; because of it was paused from your root view due to this:

- (void)viewDidDisappearBOOL)animated {
[super viewDidDisappear:animated];
[self.mobAdView pauseAdAutoRefresh];
}

Hope it will help and let me know it correct. Thank you
iNepali 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: 360
7 members and 353 guests
blueorb, fredidf, iAppDeveloper, iGamesDev, mottdog, sacha1996, Touchmint
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,667
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, host number one
Powered by vBadvanced CMPS v3.1.0

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