 |
 |
|
 |
06-12-2009, 02: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, 09: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: 491 |
| 47 members and 444 guests |
| Abdel, ackpth, activ8, AjohnB, Alchemda, BostonMerlin, Centurion Games, cjamerlan, CoolApps, coolman, Corey, dany88, dbarrett, dda, designomatt, dmf1978, gonk, greenuns, Gudus, imsatasia, IphoneSdk, jharrah, Kalimba, LemonMeringue, Link, markbuchanan, MiniRobinho, montage, msudan, naomipunkclan, NeilB, Noise, P2k, pashik, saul102, simpsonaty, Snappy, StefanL, svguerin3, Tambourin, the1nz4ne, treazer, TunaNugget, Tuszy, victorsk, williamlegate, ZunePod |
| Most users ever online was 779, 05-11-2009 at 10:55 AM. |
» Stats |
Members: 21,510
Threads: 35,793
Posts: 156,803
Top Poster: smasher (2,449)
|
| Welcome to our newest member, dmf1978 |
|