views:

1396

answers:

2

In UIFont, I couldn't find a color property. What's the trick to make a font appear green, for example?

+3  A: 

What you want is the textColor property that belongs to UILabel -- UIFont depends on other classes (like UILabel) to provide other GUI-related properties, like the color of the text.

More info here.

fbrereto
+1  A: 

Instead of setting the color in a UIFont, you set the UILabel's textColor property, which is a UIColor.

Jeff Kelley