【问题标题】:iOS 7: Dragging in UITableView / delaysContentTouches seems not workingiOS 7:在 UITableView / delaysContentTouches 中拖动似乎不起作用
【发布时间】:2013-10-06 06:44:35
【问题描述】:

我有一个 iPad 应用程序,在 UITableView 中有可拖动的内容...tableView 可水平滚动并充满可拖动的图像(UIImageView 的子类,覆盖touchesBegan: 等)

直到 iOS 7,UITableView 的tableView.delaysContentTouch=YES; 可以按预期工作,并且应用程序能够区分 tableView 中的水平滚动(用手指在 tableview 上快速移动)和拖动 tableviews contentView 中的元素(在可拖动对象上按住手指一秒钟,直到 tableview 将触摸转发到 contentView 中 UIImageView 子类的touchesBegan:。

现在在 iOS 7 下滚动几乎是不可能的,因为内容的拖动会立即触发。代码没有改变。

有人遇到过类似的情况并找到了解决方案吗?

提前致谢!

【问题讨论】:

    标签: uitableview scroll ios7 draggable touchesbegan


    【解决方案1】:

    delaysContentTouches 在 iOS7 和 7.02 中不起作用,这似乎是一个错误,您可以使用 touchesBegan 和 touchesCancelled(如果用户滚动则发送)作为解​​决方法来正确处理您的 touchEvents。

    【讨论】:

      【解决方案2】:

      我遇到了类似的问题,我正在尝试通过变通方法解决问题。我在 iPhone 5 上安装了 Gold Master IPSW。然后我更新到 iOS 7.0.2。 今天我的手机无法激活,我不得不恢复手机(现在它恢复到最新的 iOS 版本)。滚动的问题消失了。所以,我认为它与旧的 ipsw 没有正确更新到 ios 7.0.2 有关。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2018-09-09
        • 2010-12-16
        • 2011-10-19
        • 1970-01-01
        • 1970-01-01
        • 2014-07-31
        相关资源
        最近更新 更多