Scroll slowly to refresh on refreshControl. UITableViewController makes the view jump down

I used the UITableView in the UIViewController. I would put a UIRefreshControl in a UITableView and in the last bit of the sweep to update, the UITableView will go down quickly.

All answers are voiced the same: undocumented / unexpected behavior (the ability to use UIRefreshControl with a UITableView) gives such results. To reduce this, I used a ContainerView to embed a UITableViewController in a UIViewController.

I almost solved this problem, but ... if I scroll down slowly enough, the problem will not go away.

Is there a way to soften this, or am I forced to live with it?

Video: http://streamable.com/8suq

Please note that the first few times when I scroll down, I look completely normal, because I do it fast enough, but at the end of the video I really slow it down and you notice this jump.

+7
ios uitableview uiviewcontroller uirefreshcontrol
source share
1 answer

I noticed that there is a mouse pointer in this video. You can not judge the graphic performance of the animation in the simulator, it will not work the same as on a real device.

On the device, you will get much better performance and a much better frame rate per second. I saw that this is very noticeable when using SpriteKit while learning how to develop games recently.

I used UIRefreshControl several times earlier in the UITableViewController and did not notice any serious problems before. Since then, I have used other libraries, such as https://github.com/samvermette/SVPullToRefresh .

Try the application on a physical device, and in the meantime I will try to reproduce your problem and add my results here.

+3
source share

All Articles