How to use a gradient for the text of a UILabel?

29
Dec
0

The simplest solution:

UIImage *myGradient = [UIImage imageNamed:@"textGradient.png"];
myLabel.textColor   = [UIColor colorWithPatternImage:myGradient];

Found this useful?

Why not subscribe to my RSS feed!

Filed under: iOS

// No Comments

No comments yet.

Leave a comment

RSS feed for comments on this post