Reputation: 798
How can change the color of the text 'loading...'?
Upvotes: 1
Views: 2194
Reputation: 1113
Try:
//the color of the background
self.refreshControl.backgroundColor = [UIColor purpleColor];
//the color of the spinner
self.refreshControl.tintColor = [UIColor whiteColor];
// the color of the label
NSString *title = @"loading...";
NSDictionary *attrsDictionary = [NSDictionary dictionaryWithObject:[UIColor whiteColor]
forKey:NSForegroundColorAttributeName];
NSAttributedString *attributedTitle = [[NSAttributedString alloc] initWithString:title attributes:attrsDictionary];
self.refreshControl.attributedTitle = attributedTitle;
Upvotes: 4