Iphone 在自定义UITableViewCell上添加UILongPressGestureRecognitor

Iphone 在自定义UITableViewCell上添加UILongPressGestureRecognitor,iphone,uitableview,swift,uigesturerecognizer,Iphone,Uitableview,Swift,Uigesturerecognizer,我有一个自定义单元格的UITableView。在函数tableView(cellforrowatinexpath:)中,我以这种方式从对象的数组填充单元格 override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { let cellIdentifier = "Cell" let cell = tableVi

我有一个自定义单元格的UITableView。在函数tableView(cellforrowatinexpath:)中,我以这种方式从对象的数组填充单元格

override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
    let cellIdentifier = "Cell"
    let cell = tableView.dequeueReusableCellWithIdentifier(cellIdentifier, forIndexPath: indexPath) as CustomTableViewCell

    cell.txtOne.text = array[indexPath.row].firstText
    cell.txtTwo.text = array[indexPath.row].secondText

    return cell
}
现在,我想在UITextField中添加一个UILongPressGestureRecognitor,用于更改每个UITextField的属性。已启用(通过这种方式,我可以使UITextField可编辑)

我不知道该怎么办

我尝试将UILongPressGestureRecognitor添加到Main.Storyboard中,但我无法在UITextField上捕捉到操作,只能在cell上捕捉

有人能帮我吗

我使用Xcode版本6.1.1