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];
Filed under: iOS