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

前端 未结 7 1717
北恋
北恋 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:08

    Dear i faced the same problem. When i tapped the cell but didselectrowatindexpath was not called than it was suddenly called when i released the button after pressing it for few seconds.

    If you are facing the same issue there must be a 1. UITapGestureRecognizer that is creating problem for you or 2. a scroll view in which you placed you table view.

    Thus you should remove the gesture or the super scroll view in which your table view is placed

提交回复
热议问题