Global Variable

UITableViewAutomaticDimension

A constant representing the default value for a given dimension.

Declaration

const CGFloat UITableViewAutomaticDimension;

Discussion

Return this value from your table view's delegate methods when you want the table view to choose a default value for the given dimension. For example, if you return this constant from tableView:heightForHeaderInSection: or tableView:heightForFooterInSection:, the table view uses a height that fits the value returned from tableView:titleForHeaderInSection: or tableView:titleForFooterInSection:, if the title is not nil.

See Also

Providing Header, Footer, and Row Heights

- tableView:heightForRowAtIndexPath:

Asks the delegate for the height to use for a row in a specified location.

- tableView:heightForHeaderInSection:

Asks the delegate for the height to use for the header of a particular section.

- tableView:heightForFooterInSection:

Asks the delegate for the height to use for the footer of a particular section.