The value parameter that you pass to the addAttribute method is CGColor, use UIColor instead, and it will work! [UIColor redColor] .CGColor
NSString *s = @"Hello"; NSMutableAttributedString *a = [[NSMutableAttributedString alloc] initWithString:s]; [a addAttribute:kCTForegroundColorAttributeName value:[UIColor redColor] range:NSRangeFromString(s)]; refreshControl.attributedTitle = a;
source share