I found example in this post for NSAttributedString. My question is - are there any hints, how to use it for UIRefreshControl class
?
From the post above:
NSMutableAttributedString * string = [[NSMutableAttributedString alloc] initWithString:@"firstsecondthird"];
[string addAttribute:NSForegroundColorAttributeName value:[UIColor redColor] range:NSMakeRange(0,5)];
[string addAttribute:NSForegroundColorAttributeName value:[UIColor greenColor] range:NSMakeRange(5,6)];
[string addAttribute:NSForegroundColorAttributeName value:[UIColor blueColor] range:NSMakeRange(11,5)];
Are the attributes called by the UIRefreshControl
automatically?
EDIT:
I know how to set it, I want to know whether it serves any other purpose then "just" formatted label - is the UIRefresherControl able to display TWO strings? One before it has been pulled and one after it has been pulled? That's what I thought at first when I saw I can't put in "ordinary" string.