UITextField在UITableViewCell内滑动以删除问题 [英] UITextField inside UITableViewCell swipe to delete issue

查看:144
本文介绍了UITextField在UITableViewCell内滑动以删除问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自iOS 8起,我在自定义UITableViewCell上滑动删除手势时遇到问题。

Since iOS 8 I encounter an issue with the swipe to delete gesture on custom UITableViewCell.

问题似乎来自UITextField内容的UITextField。

The problem seems come from UITextField inside the contentView of UITableViewCell.

这似乎是iOS 8中的一个问题,我在iOS 7中使用相同的代码。

It seems to be a problem in iOS 8, I have the same code working fine in iOS 7.

怎么能我保持UITextField可编辑和滑动删除手势同时工作?

How can I keep the UITextField editable and the swipe to delete gesture working at the same time?

推荐答案

以下对我有用:

    self.tableView.panGestureRecognizer.delaysTouchesBegan = YES;

这篇关于UITextField在UITableViewCell内滑动以删除问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆