到目前为止,拉下刷新控件并启动相关过程可以正常工作。问题在于,填充UIActivityIndi​​cator的最后一步不会像Mail.app那样非常顺利。一个人必须付出更多的努力才能开始刷新过程。

任何想法如何解决这个问题?

最佳答案

您要做的实际上是通过调用endRefreshing方法来“结束”刷新功能:

- (void)refreshView:(UIRefreshControl *)sender {
    [self updateProfile]; //do something...in my case it updates a profile
    [sender endRefreshing];
}

09-27 12:40