Ios 刷新时如何更改UIRefreshControl的颜色?

Ios 刷新时如何更改UIRefreshControl的颜色?,ios,objective-c,uirefreshcontrol,Ios,Objective C,Uirefreshcontrol,我想在UIRefreshControl处于“刷新”状态时更改其颜色。它在iOS 6上运行良好,但在iOS 7上不起作用。这不是我的代码,我在一个月前的某个地方找到了它,它适合我 CGRect refreshFrame = self.tableView.bounds; refreshFrame.origin.y = -frame.size.height; UIView* refreshBackgroundView = [[UIView alloc] initWithFrame:refreshFra

我想在UIRefreshControl处于“刷新”状态时更改其颜色。它在iOS 6上运行良好,但在iOS 7上不起作用。

这不是我的代码,我在一个月前的某个地方找到了它,它适合我

CGRect refreshFrame = self.tableView.bounds;
refreshFrame.origin.y = -frame.size.height;
UIView* refreshBackgroundView = [[UIView alloc] initWithFrame:refreshFrame];
refreshBackgroundView.backgroundColor = [UIColor redColor]; //<- Here you choose what colour you want

[self.tableView insertSubview:refreshBackgroundView atIndex:0];
CGRect refreshFrame=self.tableView.bounds;
refreshFrame.origin.y=-frame.size.height;
UIView*refreshBackgroundView=[[UIView alloc]initWithFrame:refreshFrame];

refreshBackgroundView.backgroundColor=[UIColor redColor]//谢谢,但我想更改微调器的颜色而不是背景颜色可能重复