 |
 |
|
 |
06-12-2009, 01:35 PM
|
#1 (permalink)
|
|
Registered Member
Join Date: May 2009
Posts: 28
|
Unable to change label text
I have an app I'm working on where my main nib file has a UITabBarController and on one of the tabs I have a navigation controller and then if you drill down about two views, I have a view with various labels I am trying to populate with info from my sql db. Now in my initWithNibAndObjectInfo for the view with the label I need to change, I init my nib and then copy the other params I'm passing to some member variables. These get updated with the correct info when I debug, however the label on the view does not update with the text in those variables.
I have opened my nib for the view I am working on and connected the IBOutlets to their respective labels however no luck. I am thinking that it just may be the fact that my label text needs to be updated elsewhere since I am drilled down into a few view controllers, however this is just an assumption. Any help would be great! Thanks!
|
|
|
06-15-2009, 08:03 PM
|
#2 (permalink)
|
|
Registered Member
Join Date: May 2009
Posts: 28
|
Quote:
Originally Posted by xtr33me
I have an app I'm working on where my main nib file has a UITabBarController and on one of the tabs I have a navigation controller and then if you drill down about two views, I have a view with various labels I am trying to populate with info from my sql db. Now in my initWithNibAndObjectInfo for the view with the label I need to change, I init my nib and then copy the other params I'm passing to some member variables. These get updated with the correct info when I debug, however the label on the view does not update with the text in those variables.
I have opened my nib for the view I am working on and connected the IBOutlets to their respective labels however no luck. I am thinking that it just may be the fact that my label text needs to be updated elsewhere since I am drilled down into a few view controllers, however this is just an assumption. Any help would be great! Thanks!
|
Wow...finally got it working. Just want to post this incase anyone else runs into the issue. Apparently this whole time my issue was that I was trying to set the value of the label in my overloaded init method. When I put the code in the viewDidLoad, the label worked as it should.
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
» Online Users: 439 |
| 41 members and 398 guests |
| AdyCoder, andluclive, appie, bensj, ChrisMayer, cmpak, Desdichado, develsolutions, dot, elninom, far100, fede, fiddy, FlukeDude, gbh, gomugroup, hm50, iphonig, javaconvert, jcww33, Kalimba, Kilby, LemonMeringue, LightRoom, Locker, malaki1974, Mopedhead, oldmicah, preiss, ryguy2503, sayer, sennah, SimonHodgkiss, skunk, StefanL, stuffradio, tomoan74, ttthebest, wyoskibum |
| Most users ever online was 779, 05-11-2009 at 09:55 AM. |
» Stats |
Members: 24,208
Threads: 38,991
Posts: 171,023
Top Poster: smasher (2,569)
|
| Welcome to our newest member, JDBurgie |
|