Instance Method


Tells the delegate the table view is about to draw a cell for a particular row.


- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath;



The table-view object informing the delegate of this impending event.


A table-view cell object that tableView is going to use when drawing the row.


An index path locating the row in tableView.


A table view sends this message to its delegate just before it uses cell to draw a row, thereby permitting the delegate to customize the cell object before it is displayed. This method gives the delegate a chance to override state-based properties set earlier by the table view, such as selection and background color. After the delegate returns, the table view sets only the alpha and frame properties, and then only when animating rows as they slide in or out.

See Also

Configuring Rows for the Table View

- tableView:indentationLevelForRowAtIndexPath:

Asks the delegate to return the level of indentation for a row in a given section.

- tableView:shouldSpringLoadRowAtIndexPath:withContext:

Called to let you fine tune the spring-loading behavior of the rows in a table.