Setting a Matrix’s Appearance
These methods control the sizes of the matrix’s cells:
To set the height and width of each cell, use
setCellSize:
.To set the amount of space that surrounds each cell, use
setIntercellSpacing:
.
These methods control whether the matrix displays its background. If the matrix’s background isn’t displayed, what’s behind it shows through. If the matrix shows its background but the cells don’t, the matrix’s background shows through the cells.
To set whether the matrix draws its background, use
setDrawsBackground:
.To set whether the matrix’s cells draw their backgrounds, use
setDrawsCellBackground:
.
These methods control the color of the matrix and its cells:
To set the background color of each cell, use
setCellBackgroundColor:
.To set the background color of the space between each cell, use
setBackgroundColor:
.
Copyright © 2002, 2016 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2016-09-13