How to programmatically “tap” a UITableView cell?

后端 未结 5 1078
梦如初夏
梦如初夏 2020-12-25 15:23

I was wondering is there a way that I could have my code \"tap\" a cell in my UITableView in order to reproduce the behaviour specified in the - (void)tableView:(UITab

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-25 15:49

    Can't you put any logic in didSelectRowAtIndexPath into a separate method and just call that method from both didSelectRowAtIndexPath and wherever else you want to call the same code?

提交回复
热议问题