ios - 如何在 swift 3 中使用平移手势的方法?

标签 ios

这一行给我错误:

let recognizer = UIPanGestureRecognizer(target: self, action: Selector(("handlePan")))

最佳答案

据我了解,您的问题将通过稍微更改语法来解决。我也遇到过一次。试试这个

let recognizer = UIPanGestureRecognizer(target: self, action: #selector(CustomTableViewCell.handlePanTest(_:)))

关于ios - 如何在 swift 3 中使用平移手势的方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45673858/

相关文章:

ios - Swift 2 未使用的常量警告

iphone - 页面控制点没有改变

ios - UITableViewCell 中的 mask 图像

ios - 我返回的 UILabel 高度从来不准确

ios - 使用 iTunes 恢复备份安装相同应用程序的两个 iOS 设备的identifierForVendor 可以相同吗?

ios - weekOfYear无效

ios - 应用程序传输钥匙串(keychain)丢失 : Solutions to users logging out

ios - 我可以将应用程序的 SQLite 数据库备份到 iCloud 吗?

ios - 如何在不产生触摸事件的情况下从触摸屏上抬起手指?

objective-c - 如何点击TableViewCell打开一个新 View 并保留数据?