How to create the “indexes” required for NSIndexPath:indexPathWithIndexes:length:

前端 未结 4 742
鱼传尺愫
鱼传尺愫 2020-12-23 16:45

The class method to create an index path with one or more nodes is:

+ (id)indexPathWithIndexes:(NSUInteger *)indexes length:(NSUInteger)length
4条回答
  •  眼角桃花
    2020-12-23 17:07

    On iOS, you can also use this method from NSIndexPath UIKit Additions (declared in UITableView.h):

    + (NSIndexPath*) indexPathForRow:(NSUInteger)row inSection:(NSUInteger)section
    

提交回复
热议问题