NSIndexPath和TableViews
@interfaceNSIndexPath (UITableView) {
}
+(NSIndexPath*)indexPathForRow:(NSUInteger)row inSection:(NSUInteger)section;
@property(nonatomic,readonly)NSUIntegerrow;
@property(nonatomic,readonly)NSUIntegersection;
@end
Indicates the depth-first traversal order of the receiving index path and another index path.
Parameters
-
indexPath
-
Index path to compare.
This value must not be
nil
. If the value isnil
, the behavior is undefined.
Return Value
The depth-first traversal ordering of the receiving index path and indexPath.
-
NSOrderedAscending
: The receiving index path comes before indexPath. -
NSOrderedDescending
: The receiving index path comes after indexPath. -
NSOrderedSame
: The receiving index path and indexPath are the same index path.