Colors in Objective-C

With this post I start annotating some basic tips on Apple programming, as most newbies do.

We want to change the text and color of a label:

MyName.text = [[listNames objectAtIndex:i] uppercaseString] ;
[MyName setTextColor:[UIColor colorWithRed:22.0/255.0f green:150.0/255.0f blue:22.0/255.0f alpha:1.0]] ;

Continue reading

Advertisements