NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:@"Using NSAttributed String"];
[str addAttributes:@{NSFontAttributeName:[UIFont fontWithName:@"Arial-BoldItalicMT" size:15.0],
NSForegroundColorAttributeName :[UIColor blueColor]} range:NSMakeRange(0, 5)];
[str addAttributes:@{NSFontAttributeName:[UIFont fontWithName:@"HelveticaNeue-Bold" size:15.0],
NSForegroundColorAttributeName :[UIColor redColor]} range:NSMakeRange(6, 12)];
[str addAttributes:@{NSFontAttributeName:[UIFont fontWithName:@"Courier-BoldOblique" size:15.0],
NSForegroundColorAttributeName :[UIColor greenColor]} range:NSMakeRange(19, 6)];
label.attributedText = str;
- (UIView *)cellBackgroundView {
UIView *bgView = [[UIView alloc] init];
CAGradientLayer *_gradientLayer;
_gradientLayer = [CAGradientLayer layer];
_gradientLayer.frame = CGRectMake(0, 0, SCREEN_WIDTH, 85);
[bgView.layer addSublayer:_gradientLayer];
_gradientLayer.startPoint = CGPointMake(0, 0);
_gradientLayer.endPoint = CGPointMake(0, 1);
_gradientLayer.colors = @[(__bridge id)[UIColor whiteColor].CGColor,
(__bridge id)[UIColor stringTOColor:@"#c0ffff"].CGColor];
return bgView;
}