uiscrollview内部的uitableview(滚动问题) [英] uitableview inside a uiscrollview (scrolling issue)

查看:48
本文介绍了uiscrollview内部的uitableview(滚动问题)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在uiscrollview中有一个uitableview.因此,uitableview小于uiscrollview.当我开始在uitableview上向下滚动并到达底部时,我可以在uiscrollview中滚动.而且效果很好.但并不完美.

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.

我想使ux完美,因此scrollview将是一种扩展(或uitableview的另一部分).我不想在表格视图的底部添加任何部分或页脚视图.

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:

//如果tableview滚动到底部

// if tableview didscroll to bottom

然后scrollview scrolltorect xxx//

then scrollview scrolltorect xxx //

,但是只有当uitableview向下滚动时,它才起作用.

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

我不确定这是否会复制正确的ux行为.

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.

推荐答案

我发现这很难执行,因此我更改了UI,以便将界面的底部置于tableview页脚视图的内部.这样,滚动应用程序的体验就变得更加流畅.

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.

这篇关于uiscrollview内部的uitableview(滚动问题)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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