I want to change color of UIRefreshControl when it in "refreshing" state. It works fine on iOS 6, but on iOS 7 it doesn't work.
Asked
Active
Viewed 642 times
0
-
1possible duplicate http://stackoverflow.com/questions/19026351/ios-7-uirefreshcontrol-tintcolor-not-working-for-beginrefreshing – CSmith Apr 24 '14 at 12:39
1 Answers
1
It's not my code I've found it a months ago somewhere and it works for me.
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];

Greg
- 25,317
- 6
- 53
- 62
-
thank you, but I want to change color of spinner not background color – ChikabuZ Apr 24 '14 at 12:13