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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.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 08-05-2010, 08:23 PM   #1 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 13
willsaake is on a distinguished road
Default Question on Subviews and Navigation Bars

I am writing a tab controller based application with a navigation controller for each tab.

I am placing some UILabels as subviews onto the navigation bar. I want to periodically update the text attribute on those UILabel objects.

My question is once the UILabel is added as a subview onto the navigation bar how can I reference that label.text attribute?

Thanks to anyone who can help.
willsaake is offline   Reply With Quote
Old 08-05-2010, 08:28 PM   #2 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 47
john4mac is on a distinguished road
Default

Quote:
Originally Posted by willsaake View Post
I am writing a tab controller based application with a navigation controller for each tab.

I am placing some UILabels as subviews onto the navigation bar. I want to periodically update the text attribute on those UILabel objects.

My question is once the UILabel is added as a subview onto the navigation bar how can I reference that label.text attribute?

Thanks to anyone who can help.
Hello. I am here actually to ask you a question about your application. I'm sorry I can't answer your question, but how did you add subviews while being on the same tab? I really need this. Thanks.
john4mac is offline   Reply With Quote
Old 08-05-2010, 09:44 PM   #3 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 27
abhimanipal is on a distinguished road
Default

@willsaake

What do you mean periodically ?
abhimanipal is offline   Reply With Quote
Old 08-05-2010, 10:05 PM   #4 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 13
willsaake is on a distinguished road
Default

Quote:
Originally Posted by abhimanipal View Post
@willsaake

What do you mean periodically ?

If a user changes their location I want to update the label text on the uilabel I added as a subview on the nav bar.
willsaake is offline   Reply With Quote
Old 08-05-2010, 10:11 PM   #5 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 27
abhimanipal is on a distinguished road
Default

Is the UILabel connected as an IBOutlet ?
abhimanipal is offline   Reply With Quote
Old 08-05-2010, 10:15 PM   #6 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 27
abhimanipal is on a distinguished road
Default

Also I would like to ask a question here. I apologize if this is the wrong place or the question is "noob" question ?

Is there a way I can follow the threads that I post on ?As in get an email when someone else comments on the threads in which I have posted
abhimanipal is offline   Reply With Quote
Old 08-05-2010, 10:17 PM   #7 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 13
willsaake is on a distinguished road
Default

Quote:
Originally Posted by abhimanipal View Post
Is the UILabel connected as an IBOutlet ?
No, I built everything programatically and didn't use IB.
willsaake is offline   Reply With Quote
Old 08-08-2010, 10:07 PM   #8 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 27
abhimanipal is on a distinguished road
Default

Can you post the code that you used for declaring and placing the Label.

PS try replace the programatically created label with an IB one and see if it makes any difference
abhimanipal 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



» Advertisements
» Online Users: 307
11 members and 296 guests
alexP, arash5500, gordo26, HemiMG, linkmx, mediaspree, nobstudio, Objective Zero, Sloshmonster, stanny, Touchmint
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,655
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, pungs
Powered by vBadvanced CMPS v3.1.0

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