The default inset of cell separators.
- iOS 7.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
In iOS 7 and later, cell separators do not extend all the way to the edge of the table view. This property sets the default inset for all cells in the table, much as
row sets the default height for cells. It is also used for managing the “extra” separators drawn at the bottom of plain style tables.
For example, to specify a table view where the default left separator inset is 3 points and the default right separator inset is 11, you would write:
If every cell in a table contains an image view of the same size, by default iOS vertically aligns the leading edge of all separators. In a table that mixes text-only cells with cells that contain image views, you can use the
separator property to ensure that the separators are vertically aligned.
In a right-to-left user interface, an inset that you set using the
separator property automatically flips its left and right measurements.
Only left and right insets are honored. In a right-to-left user interface, the inset measurements are automatically flipped.