I created an NSIndexPath object, but when I print the value of its length property, it will always show the value as 2.
NSIndexPath *index = [NSIndexPath indexPathForItem:0 inSection:4];
{length = 2, path = 4 - 0}
Why is the length always 2?
ios nsindexpath
rishu1992
source share