| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/UIKit.framework |
| Availability | Available in iPhone OS 2.0 and later. |
| Declared in | UITableView.h |
The UIKit framework adds programming interfaces to the NSIndexPath class of the Foundation framework to facilitate the identification of rows and sections in UITableView objects.
The API consists of a class factory method and two properties. The indexPathForRow:inSection: method creates an NSIndexPath object from row and section index numbers. The properties return the row index number and the section index number from such objects.
For more about Objective-C properties, see “Properties” in The Objective-C Programming Language.
An index number identifying a row in a section of a table view. (read-only)
@property(readonly) NSUInteger row
The section the row is in is identified by the value of section.
UITableView.hAn index number identifying a section in a table view. (read-only)
@property(readonly) NSUInteger section
UITableView.hReturns an index-path object initialized with the indexes of a specific row and section in a table view.
+ (NSIndexPath *)indexPathForRow:(NSUInteger)row inSection:(NSUInteger)section
An index number identifying a row in a UITableView object in a section identified by section.
An index number identifying a section in a UITableView object.
An NSIndexPath object or nil if the object could not be created. The returned object is autoreleased.
UITableView.hLast updated: 2008-07-08