Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITextField inside UITableViewCell swipe to delete issue

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

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

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

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

like image 459
Yann86 Avatar asked Mar 18 '23 08:03

Yann86


1 Answers

The following worked for me:

    self.tableView.panGestureRecognizer.delaysTouchesBegan = YES;
like image 73
Cirith Ungol Avatar answered Mar 26 '23 00:03

Cirith Ungol