この投稿でNSAttributedStringの例を見つけました。私の質問は-何かヒントはありますか、それをどのように使用するのUIRefreshControl class
ですか?
上記の投稿から:
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)];
属性はUIRefreshControl
自動的に呼び出されますか?
編集:
私はそれを設定する方法を知っています、それが「ちょうど」フォーマットされたラベル以外の目的を果たしているかどうか知りたいです-UIRefresherControlは2つの文字列を表示できますか?引っ張られる前と引っ張られた後の1つ?それが、「普通の」文字列が入れられないのを見て最初に思ったものです。