Possible Duplicate:
Objective C Equivalent of PHP's “Variable Variables”
I'm studding Objective-C and have a doubt about this operation:
I know that fast enumeration is better, but I would like to know do that with FOR approach.
In Actionscript 3 I code:
/*
label0.text = [array objectAtIndex:0];
label1.text = [array objectAtIndex:1];
label2.text = [array objectAtIndex:2];
label3.text = [array objectAtIndex:3];
*/
for (int i = 0; i<4; i++ ) {
this["label" + i].text = array[ i ];
}