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
|