Quote:
Originally Posted by nobre84
Something like:
Code:
NSMutableArray *array = [[NSMutableArray alloc] initWithCapacity: MY_LABEL_COUNT];
for (int i=0; i<MY_LABEL_COUNT; i++) {
[array addObject:[[UILabel alloc] initWithFrame:CGRectZero]];
}
You have an array full of labels now... and can iterate through them just like above, redeeming its object with [array objectAtIndex: ]
What exactly are you doing ? How do you create the labels ?
|
I am creating a clock.app as my first iphone project. The labels are already created at Interface Builder. Now I want to change the color of the current minute... Therefore I use a "for... loop" and want to address the labels color for example.
Thanks for reply.