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-11-2008, 06:59 AM   #1 (permalink)
roberthuttinger
Registered Member
 
roberthuttinger's Avatar
 
Join Date: Sep 2008
Posts: 96
roberthuttinger is on a distinguished road
Default Simple Loop Question..

I want to do a for loop (i am now going to try to implement a table view but am still curious) How can I increment the value of 'itemListText1' so it is 'itemListText%i'?

HTML Code:
//=======( create or destroy the text in field %i )=======
if ([mainDelegate.personArray count] == 1) {
	itemListText1.text = [NSString stringWithFormat:@"%@ - %@", [[mainDelegate.personArray objectAtIndex:0] itemTitle], [[mainDelegate.personArray objectAtIndex:0] itemAddtl]];
	itemListText2.text = [NSString stringWithFormat:@""];
//=========( corresponding delete buttons )==========
	remove1Button.hidden = YES;
	remove2Button.hidden = NO;
}
im sure its dead simple.. just create a variable and assign?

cheers.rob
roberthuttinger is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,536
Threads: 94,052
Posts: 402,640
Top Poster: BrianSlick (7,979)
Welcome to our newest member, bppnormal11
Powered by vBadvanced CMPS v3.1.0

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