我在这篇帖子中找到了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)];
< p > UIRefreshControl
调用的属性是自动的吗?< /p >
< p > 编辑:< /p >
< p > 我知道如何设置它,我想知道它是否除了作为格式化标签之外还有其他作用 - UIRefresherControl能否显示两个字符串?在被拉之前和之后分别显示一个字符串?当我发现无法输入“普通”字符串时,这就是我最初想到的。 < /p >