How to create NSIndexPath for TableView

后端 未结 4 512
臣服心动
臣服心动 2021-01-29 18:39

I need delete row 1 of a table in a function I have defined. In order to use deleteRowAtIndexPath you must use an IndexPath with a section and row defi

4条回答
  •  心在旅途
    2021-01-29 19:05

    indexPathForRow is a class method!

    The code should read:

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

提交回复
热议问题