设置渐变文字的一种技巧 用渐变图片生成渐变颜色. UIColor *titleColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"a.jpg"]]; aLabel.textColor = titleColor; aLabel.backgroundColor = [UIColor clearColor];