Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-12-2009, 01:35 PM   #1 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 28
Default 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!
xtr33me is offline   Reply With Quote
Old 06-15-2009, 08:03 PM   #2 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 28
Default

Quote:
Originally Posted by xtr33me View Post
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.
xtr33me is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,208
Threads: 38,991
Posts: 171,023
Top Poster: smasher (2,569)
Welcome to our newest member, JDBurgie
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:11 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0