UIRefreshController 结束动画问题 [英] UIRefreshController Ending Animation Issue

查看:28
本文介绍了UIRefreshController 结束动画问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我调用 self.refreshControl.endRefreshing() 时,它会像它应该的那样将 tableView 捕捉回它的原始位置.我应该如何对其进行动画处理,使其流畅地返回到 endRefreshing() 上的原始位置?

When I call for self.refreshControl.endRefreshing() it snaps the tableView back to it original spot like it should. How should I go about animating it so that it fluently returns to its original spot on endRefreshing()?

推荐答案

对于遇到此问题的任何人,您必须在重新加载表数据之前调用您的 endRefreshing 方法.否则,当表更新时,它会覆盖刷新器并导致它看起来有问题.

To anyone having this issue, you must call your endRefreshing method before you reload the table data. Otherwise when the table updates it will override the refresher and cause it to look buggy.

这篇关于UIRefreshController 结束动画问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆