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 09-13-2008, 06:03 PM   #4 (permalink)
PhoneyDeveloper
New Member
 
Join Date: Sep 2008
Posts: 1,431
Default

You should look at the TableViewSuite sample code as it does this. Basically you set the tag of the label when you create it and you get the subview back like this after you dequeue it:

Code:
// creation
	label = [[UILabel alloc] initWithFrame:CGRectMake(0.0f, 12.0f, 70.0f, 25.0f)];
	label.tag = LABEL_TAG;
	[cell.contentView addSubview:label];

// after dequeue
label = (UILabel *)[cell.contentView viewWithTag:LABEL_TAG];
PhoneyDeveloper is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,782
Threads: 89,204
Posts: 380,594
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jameswilliards
Powered by vBadvanced CMPS v3.1.0

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