Manually call didSelectRowatIndexPath

前端 未结 5 1341

I am trying to call didSelectRowAtIndexPath programmatically but am having trouble.

[self tableView:playListTbl didSelectRowAtIndexPath:indexPath];
         


        
5条回答
  •  粉色の甜心
    2020-12-14 17:26

    You need to define an indexPath variable if you don't already have one to stick in there.

    Something like:

        NSIndexPath * indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
    

提交回复
热议问题