UITableView need long press to select a row

前端 未结 4 1442
既然无缘
既然无缘 2020-12-20 16:24

Anyone has ever come into the problem that UITableView need long press to trigger the didSelectRowAtIndexPath method?

4条回答
  •  無奈伤痛
    2020-12-20 17:01

    In my situation I had a UITapGestureRecognizer on my view for hiding my keyboard.

    This solved the problem:

    tap.cancelsTouchesInView = false
    

提交回复
热议问题