uitableview inside a uiscrollview (scrolling issue)

让人想犯罪 __ 提交于 2019-12-11 09:17:47

问题


I have got a uitableview inside of a uiscrollview. So the uitableview is smaller than the uiscrollview. And when I start to scroll down on the uitableview and it reaches the bottom, I am able to scroll in the uiscrollview. And it works fairly. But not perfectly.

I would like to make the ux perfect so the scrollview would be kind of an extension (or another section of the uitableview). I don't want to add any section or footerview at the bottom of the tableview.

I was wondering on doing this by implementing something like this:

// if tableview didscroll to bottom

then scrollview scrolltorect xxx //

but it would only work if the uitableview was scrolling down.

I am not sure if this would replicate the correct ux behaviour.

Could you guys give me your advice on how to do this?

Thank you and best regards.


回答1:


I found this very hard and difficult to execute so I changed my UI in order to put the bottom of the interface inside the tableview footer's view. This way the experience of scrolling my app got much smoother.



来源:https://stackoverflow.com/questions/16731569/uitableview-inside-a-uiscrollview-scrolling-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!