Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-15-2009, 09:03 PM   #2 (permalink)
xtr33me
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
 

» Advertisements
» Online Users: 739
18 members and 721 guests
ADY, AppleSteve, betterlee, blueskysinger, ckgni, Domele, femenina, hasinthajanaka, ilmman, jkigel, k2c, Oral B, prerna chavan, sacha1996, saqibjaan, shairah27, zamoraalex2696, zom888
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,619
Threads: 89,141
Posts: 380,328
Top Poster: BrianSlick (7,110)
Welcome to our newest member, femenina
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:28 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.