我创建了一个NSIndexPath对象但是当我打印其length属性的值时,它总是将值显示为2.
NSIndexPath *index = [NSIndexPath indexPathForItem:0 inSection:4];
Run Code Online (Sandbox Code Playgroud)
{length = 2,path = 4 - 0}
为什么长度总是2?
| 归档时间: |
|
| 查看次数: |
2439 次 |
| 最近记录: |