ios - UITableView 中包含 UIView 的滚动问题

标签 ios swift uitableview uiview

起初我在我的Storyboard 中添加了一个UITableView,后来我在其中添加了UIView

enter image description here

现在,运行我的应用程序后,当我尝试通过将 UIView 拖动到顶部来滚动我的 tableView 时(触摸 UIView 并尝试滚动) - 它不会滚动,但是当我通过从 tableView 拖动来滚动时 - 它会滚动。

enter image description here

如何修复它并通过触摸和滚动那些 UIView 来滚动?

最佳答案

请确保您已选中 UITableview 的“可取消内容触摸”,如下所示

enter image description here

关于ios - UITableView 中包含 UIView 的滚动问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35741624/

相关文章:

ios - 如何在没有任何图标的情况下使用 NSAlert?

ios - 提取 JSON 并将其保存在 NSMutableArray 中

objective-c - 删除了一个 nib 文件,现在出现 "class not key value coding compliant"错误

ios - 带有 UITableViewCells + AutoLayout 的 UITableView - 不像*应该*那样平滑

iphone - 选中时突出显示单元格的一部分

ios - swift : How can I use delete and share button in Cell?

ios - FontAwesome Pro 和 xamarin.ios 只有一种字体可以激活

ios - 类型 '[Root]' 的值没有成员 'commit' 。我如何解码 JSON 根数组

ios - 检测旋转何时完成并移动到新场景

ios - RxSwift、MVVM、Alamofire/Moya。使用间隔更新股票代码