0
我想在「刷新」狀態下更改UIRefreshControl的顏色。它可以在iOS 6上正常工作,但在iOS 7上不起作用。如何在刷新時更改UIRefreshControl的顏色?
我想在「刷新」狀態下更改UIRefreshControl的顏色。它可以在iOS 6上正常工作,但在iOS 7上不起作用。如何在刷新時更改UIRefreshControl的顏色?
這不是我的代碼,我發現它在一個月前的某個地方,它適用於我。
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];
謝謝你,但我想改變微調不是背景色的顏色 – ChikabuZ
可能重複http://stackoverflow.com/questions/19026351/ios-7-uirefreshcontrol-tintcolor-not-working-for-beginrefreshing – CSmith