Can anyone point me to where [indexPath row] is described in the documentation, I have looked at NSIndexPath but I can’t find any mention of “row”? I am assuming its an NSUInteger, but I would also like to double check its type and see what other properties are available.
Example:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NSUInteger currentRow = [indexPath row];
}
cheers Gary
The
.rowproperty is part of the extension category defined in UIKit.The doc is in https://developer.apple.com/reference/foundation/nsindexpath/1614853-row (row) and https://developer.apple.com/reference/foundation/nsindexpath/1528298-section (section).
The Swift counterpart: https://developer.apple.com/reference/foundation/indexpath/1779554-row (row) and https://developer.apple.com/reference/foundation/indexpath/1779112-section (section).
These Swift properties are of type
Int.