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 09-15-2008, 08:52 PM   #49 (permalink)
jamesbrannan
New User
 
jamesbrannan's Avatar
 
Join Date: Aug 2008
Location: Gaithersburg, MD
Posts: 178
jamesbrannan is on a distinguished road
Default

I'm not done yet, couldn't you do something simple like this in the firstviewcontroller? (Sorry, my own names not the tutorial's)

Code:
- (void) viewDidAppear:(BOOL) animated
{
	NSLog(@"First view appeared.");
	TourDeControlsAppDelegate *md = (TourDeControlsAppDelegate *)
                                    ([[UIApplication sharedApplication] delegate]);
	NSLog(@"changeTheString called. %@", md.theString);
}
So, in the Second nib, you call a method in secondviewcontroller that changes a property in the delegate, then, the next time the first view becomes visible, you initialize its value with the value in the delegate like the above code. I know that it works with NSLog at least, I'm now going to try setting labels etc. after I put the brats to sleep...maybe a tutorial is in order, as my precondition is that I must use IB as the starting point for all my endeavors...
jamesbrannan is offline   Reply With Quote
 

» Advertisements
» Online Users: 342
15 members and 327 guests
acegames, baja_yu, Bertrand21, chemistry, fredbmm, garticle, greeneye82, HemiMG, jimmyon122, mobilaga, Newbie123, NSString, Plazor, wfarun2012, zhijianhi
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,556
Threads: 94,078
Posts: 402,736
Top Poster: BrianSlick (7,990)
Welcome to our newest member, wfarun2012
Powered by vBadvanced CMPS v3.1.0

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