iOS 7 UIRefreshControl tintColor not working for beginRefreshing

前端 未结 19 1656
我在风中等你
我在风中等你 2020-12-04 13:48

I\'m trying to set a tintColor on my UIRefreshControl (building on iOS 7). I enabled refreshing for the tableViewController in storyboard, then in my ViewController vi

19条回答
  •  温柔的废话
    2020-12-04 14:40

    Force the setTintColor to run in the main thread. (Main thread updates the ui).

    [[NSOperationQueue mainQueue] addOperationWithBlock:^ {
        [self.refreshControl setTintColor:[UIColor redColor]];
        [self.refreshControl beginRefreshing];
    }];
    

提交回复
热议问题