0

The following code runs, but it only returns the same string, as many counts as the array. I want to return all the objects in the array (values) to the "lblMessage", one by one. Where is my mistake?

int i;
	int count;
	for (i=0, count = [values count]; i<count; i=i+1) 
		self.lblMessage.text = [NSString stringWithFormat:@"%@\n%@", self.lblMessage.text, [values objectAtIndex:[values count]-1]];
	[values release];
}

Edited by gabblesargh: n/a

6
Contributors
5
Replies
6
Views
7 Years
Discussion Span
Last Post by peter_budo
0

Hey, what is that ???:|
I think not C language.....may be D, E or F...

No, seriously !!! what is that ????:confused:

0

Hi,
Where you find this code.This is C language code!!!!!!!!!!!!!!!!!!!!You can suggestion me where we find this....................

0

It's Objective-C, not C, and there is an extremely big difference between the two. Post it somewhere else, to a Mac/iPhone-related development forum, like MacRumors or the programming-oriented StackOverflow.

0

All of you have so much to say if it is C or not C completely ignoring thread title.

@AD, thanx for flagging post

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.