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

View Single Post
Old 11-05-2008, 03:05 PM   #160 (permalink)
DevTeamOfOne
New Member
 
Join Date: Aug 2008
Posts: 361
DevTeamOfOne is on a distinguished road
Default

OK... the way you're going about this is incorrect.

I can't be sure but this is how I would go about it:

Create a property in level 3 of the class LevelTwoViewController, and set like this: level3ViewController.number2ViewController = self;

then at level 3 tell level 4 that to set level4ViewController.number2ViewController = number2ViewController;

then at level 4 tell level 5 to set a property of it's own level5ViewController.number2ViewController = number2ViewController;

then in level 5 when the toolbar button is pressed, say:
[self.navigationController popToViewController:number2ViewController];

Does that make sense? Make each higher view have the second level as its property.

I dunno if that would work. If it doesn't, I'd use [[UIApplication sharedApplication] delegate] to drill down to find level 2 as a property of level 1. That would almost definitely work as its a singleton object (only references, doesn't create another object).

Then, alternately again, you could set it all up with view Controllers in a nib file and reference it via an IBOutlet.

Last edited by DevTeamOfOne; 11-05-2008 at 03:07 PM.
DevTeamOfOne is offline   Reply With Quote
 

» Advertisements
» Online Users: 409
14 members and 395 guests
antonwilliams, Chickenrig, CMSLdesign, dre, guillermotricia, ilmman, LEARN2MAKE, Paul Slocum, roof44, ryantcb, Speed, spinyanteater, Trickphotostudios, waterkamp
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,591
Threads: 94,083
Posts: 402,778
Top Poster: BrianSlick (7,990)
Welcome to our newest member, guillermotricia
Powered by vBadvanced CMPS v3.1.0

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