Where does the indexPath of dequeueReusableCellWithIdentifier:forIndexPath: get used?

后端 未结 4 1242
慢半拍i
慢半拍i 2020-12-08 00:31

Apple\'s documentation says of the indexPath parameter:

The index path specifying the location of the cell. The data source receives this

4条回答
  •  孤城傲影
    2020-12-08 01:14

    I believe it is used to call the tableView:heightForRowAtIndexPath: method, if one exists, allowing the cell to be correctly sized.

提交回复
热议问题