Swipe left gestures over UITextField

后端 未结 3 1276
有刺的猬
有刺的猬 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:31

    Sounds like you need to set the cancelsTouchesInView property

    yourGestureRecognizer.cancelsTouchesInView = NO;
    

提交回复
热议问题