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 08-27-2009, 07:44 AM   #7 (permalink)
daniel.mac
Registered Member
 
Join Date: Aug 2009
Posts: 5
daniel.mac is on a distinguished road
Default

Quote:
Originally Posted by nobre84 View Post
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.
daniel.mac is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,174
Threads: 93,917
Posts: 402,135
Top Poster: BrianSlick (7,966)
Welcome to our newest member, dremayl49
Powered by vBadvanced CMPS v3.1.0

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