iphone - didSelectRowAtIndexPath: only being called after long press on custom cell

前端 未结 7 1703
北恋
北恋 2020-12-09 08:07

I am creating one table view based application. I have created a custom table cell for table, that contains 2 labels, 1 image and 1 button. The table view Data source metho

7条回答
  •  一整个雨季
    2020-12-09 08:34

    If you have custom gesture object on your view, check override func gestureRecognizerShouldBegin(_ gesture: UIGestureRecognizer) -> Bool delegate. Compare custom gesture with sender gesture, If its not custom gesture object, pass it to the the super. So system gestures/taps won't get blocked.

提交回复
热议问题