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

View Single Post
Old 09-12-2008, 01:47 PM   #7 (permalink)
roberthuttinger
Registered Member
 
roberthuttinger's Avatar
 
Join Date: Sep 2008
Posts: 96
roberthuttinger is on a distinguished road
Default

so if i have an array that has 1 item in it, it will load the label with the text from a arrayItem[1] and show the delete button, and there is no info after that . so what id like to do is a for statement...
HTML Code:
for(i=0; i=arrayItems.count;i++) {
itemListText [###how do I increment this?###].text = [NSString stringWithFormat:@"%@ - %@", [[mainDelegate.personArray objectAtIndex:0] itemTitle], [[mainDelegate.personArray objectAtIndex:0] itemAddtl]];
remove2Button.hidden = NO;
}
How can I make the number of the label at the end a variable on the fly?

for example:
itemListText1
itemListText2
itemListText3 etc

rob
roberthuttinger is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,542
Threads: 94,065
Posts: 402,676
Top Poster: BrianSlick (7,989)
Welcome to our newest member, DieScumBag
Powered by vBadvanced CMPS v3.1.0

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