iOS中的Pull to Refresh Jump [英] Pull To Refresh Jump in iOS

查看:74
本文介绍了iOS中的Pull to Refresh Jump的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我慢慢下拉刷新时,我看到UIActivityIndi​​cator圈在开始刷新之前慢慢变得更加完整。在圆圈完成并且刷新实际触发之前,内容跳跃/猛然下降然后圆圈开始旋转。当我慢慢拉下来时,我才注意到这一点。

When I slowly pull down to refresh, I see the UIActivityIndicator circle slowly get more complete before it starts the refresh. Just before the circle is complete and the refresh actually triggers, the content jumps/jerks down and then the circle starts spinning. I only notice this when I pull down slowly.

我在一个名为mainSV的滚动视图中使用pull来刷新

I'm using the pull to refresh inside a scroll view called mainSV

    self.refresh = [[UIRefreshControl alloc] init];
    [self.refresh addTarget:self action:@selector(handleRefresh) forControlEvents:UIControlEventValueChanged];
    [self.mainSV addSubview:self.refresh];

为什么会发生这种跳跃/混蛋?

Why does this jump/jerk happen?

推荐答案

这可能是iOS中的一个错误。你的设置是正确的,我在我的应用程序中看到了同样的事情。

It's probably a bug in iOS. Your setup is correct, and I see the same thing in my app.

这篇关于iOS中的Pull to Refresh Jump的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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