ios - 如何在UITableView上更改Pull的文本颜色以刷新?

标签 ios objective-c uitableview pull-to-refresh

如何更改文本“正在加载...”的颜色?

最佳答案

尝试:

//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;

关于ios - 如何在UITableView上更改Pull的文本颜色以刷新?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35631910/

相关文章:

ios - 从包含的 UIViewController 向 UIView 的 UIButton 分配回调

ios - NSFetchedResultsController 不诉诸内容更改

ios - 如何添加位于 NSMutableDictionary 和 NSArray 属性内的 NSArray 对象?

ios - Objective-c 项目 : not supported for static libraries 中的 Swift

ios - 在 heightForRowAtIndexPath 中推断行高

objective-c - AVPlayer 特殊注意事项是什么意思?

ios - 如何更改表格 View 单元格图像?

ios - 如何将 TextView 嵌入具有多个部分的 TableView 单元格内?

ios - 使用 Swift 的 Alamofire - "Could not cast value of type ' Swift._SwiftDeferredNSArray' (ox10a75ebb0) 到 'Photomania.PhotoInfo' (0x107ee7b90)。”

ios - 取消选择行的适当位置