When the lining controls up and measures their distances from each other, it is often advisable to think about the locations of the controls in terms of the visual space that they occupy on the screen, and not just their raw frames. In many cases, the visual rectangle that the control controls and its structure are significantly different. For example, a regular-sized button looks about 20 points on the screen, with 2 or 3 dots of shadow fabric. In fact, the frame of a correctly configured button is 32 points, not ~ 23. These additional 9 points of points are not visually obvious.
Layout Rectangle is the name that Interface Builder uses for this concept.
The rectangle layout is useful for measurement and calibration applications. Apple’s Human Interface Guidelines can make the statement that “Two buttons aligned vertically and horizontally next to each other should have 12 points of space separating them horizontally.” These are 12 points of space separating the buttons; they should be measured from the frames of the button layout, and not from their raw frames.
Jon Hess Jun 03 '09 at 2:51 2009-06-03 02:51
source share