Hi folks,
I'm learning how to program for fun and to better understand what programmers have to deal with at work (I'm a UX Designer). I just finished reading Learning C on the Mac, Learning Objective C 2.0, Beginning iPhone Development, and I'm trying to build my first iPhone app. I'm extremely stuck on what I assume is a typical noob problem: passing values between controllers.
In the app I'm making, I have three controllers which inherit from the same parent controller. For example- "soundSelectorRight : SoundSelectorViewController" Each of these three inherited controllers has its own nib and a table populated by values in a property list. The string in the selected row appears in a label just above the tab bar, which is used to navigate between views (and their associated controllers). There are three labels, one per tab, and it would be great if the labels could show the selected row in all three tabs. You can probably guess where this is going...
How can I make it so selecting a new row in the first tab updates a label in the third tab?
I tried @class stuff, but I've been reading up on it, and I'm starting to think that's not the way. Any thoughts would be really appreciated... thanks guys...
I'm learning how to program for fun and to better understand what programmers have to deal with at work (I'm a UX Designer). I just finished reading Learning C on the Mac, Learning Objective C 2.0, Beginning iPhone Development, and I'm trying to build my first iPhone app. I'm extremely stuck on what I assume is a typical noob problem: passing values between controllers.
In the app I'm making, I have three controllers which inherit from the same parent controller. For example- "soundSelectorRight : SoundSelectorViewController" Each of these three inherited controllers has its own nib and a table populated by values in a property list. The string in the selected row appears in a label just above the tab bar, which is used to navigate between views (and their associated controllers). There are three labels, one per tab, and it would be great if the labels could show the selected row in all three tabs. You can probably guess where this is going...
How can I make it so selecting a new row in the first tab updates a label in the third tab?
I tried @class stuff, but I've been reading up on it, and I'm starting to think that's not the way. Any thoughts would be really appreciated... thanks guys...