Why is -didDeselectRowAtIndexPath not being called?

后端 未结 10 1782
梦如初夏
梦如初夏 2020-11-29 05:38

I created a fresh project (Xcode 4, Master-Detail application) just to see if I\'m doing something wrong, but I still have the same problem. I want to call -reloadData

10条回答
  •  北荒
    北荒 (楼主)
    2020-11-29 06:42

    I know this is an old question but I just ran into the same problem.

    If you use

    [tableView reloadData]
    

    Then The table data is reloaded and no rows are selected behind the scenes - meaning

    only

    didSelectRowAtIndexPath
    

    is ever called. I hope this helps someone who comes across this problem.

提交回复
热议问题