didSelectRowAtIndexPath returns wrong IndexPath

前端 未结 2 2025
半阙折子戏
半阙折子戏 2021-02-06 20:33

I have encountered a really puzzling bug. The first row of my UITableView returns 1 and the second one returns 0 in the indexPath! How is t

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-06 20:53

    Despite the title, the overloaded method is in fact didDeselectRowAtIndexPath, so it sounds like the behaviour is correct -- when the 1th row is touched, the 0th becomes deselected, and vice versa.

提交回复
热议问题