简体   繁体   English

带有UIView的UITableView中的滚动问题

[英]Scrolling issue in UITableView with the UIView in it

At first I've added to my Storyboard an UITableView , later inside of it I've added UIView 首先,我在Storyboard添加了UITableView ,后来在其中添加了UIView

在此处输入图片说明

Now after running my app when I'm trying to scroll my tableView by dragging UIView to top(touching on UIView and trying to scroll) - it does not scroll, but when I scroll by dragging from tableView - it scrolls. 现在,在运行我的应用程序后,当我尝试通过将UIView拖动到顶部来滚动tableView时(触摸UIView并尝试滚动)-它不会滚动,但是当我通过从tableView拖动来滚动时-它会滚动。

在此处输入图片说明

How can I fix it and scroll by touching and scrolling over those UIView ? 我该如何修复并通过触摸和滚动这些UIView滚动?

Make sure that you have checked 'cancellable content touches' of UITableview as below 确保已检查UITableview的“可取消的内容触摸”,如下所示

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM