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

Works fine....

Starting with the Tab Bar Application Template...

First View in MainXib uses FirstViewController
Add a label in mainxib and set an outlet in firstviewcontroller.
Change Second xib's view to use it's own SecondviewController
Ensure the #@$@% TabBar, tabs in mainxib point to correct controllers
Have secondcontroller have an action that sets a value in delegate.
Create a button on secondview that when clicked calls that action. Be sure the action changes the value in the delegate.
When firstviewcontroller loads the view, have it change the outlet's value to the value in the delegate.

This is pretty standard MVC isn't it? It's so easy, and is a solution that is easily accomplished with the IB's tab bar project template, that I definitly think it's worth a tutorial.

I downloaded a screen movie capture program, so I'll work on it this week.

James
jamesbrannan is offline   Reply With Quote
 

» Advertisements
» Online Users: 332
14 members and 318 guests
acegames, baja_yu, Bertrand21, chemistry, fredbmm, garticle, greeneye82, HemiMG, jimmyon122, mobilaga, Newbie123, NSString, 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.