Instance Method

numberOfRowsInSection:

Returns the number of rows (table cells) in a specified section.

Declaration

- (NSInteger)numberOfRowsInSection:(NSInteger)section;

Parameters

section

An index number that identifies a section of the table. Table views in a plain style have a section index of zero.

Return Value

The number of rows in the section.

Discussion

UITableView gets the value returned by this method from its data source and caches it.

See Also

Getting the Number of Rows and Sections

numberOfSections

The number of sections in the table view.