Swipe left gestures over UITextField

后端 未结 3 1277
有刺的猬
有刺的猬 2021-01-12 15:11

I have UITextFields in tableviewcells. When you swipe over the cell not part of the textfield, the delete action comes up as expected. If you swipe over the textfield, it st

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-12 15:29

    from UIButton & UITextField will block UITableViewCell being swipe to delete

    self.tableView.panGestureRecognizer.delaysTouchesBegan = YES;
    

    this will make the textfield not stop left swipe guestures

提交回复
热议问题