View
View Attributes Inspector Reference
Layout and Tagging
Mode
How the view presents its content when the view size changes.
Selection |
Method |
Argument |
---|---|---|
Scale to Fill |
||
Aspect Fit |
||
Aspect Fill |
||
Redraw |
||
Center |
||
Top |
||
Bottom |
||
Left |
||
Right |
||
Top Left |
||
Top Right |
||
Bottom Left |
||
Bottom Right |
Tag
The view tag.
Access: tag
.
Events
Interaction
User Interaction Enabled
Whether the view processes touch and keyboard events.
Selection |
Method |
Argument |
---|---|---|
Unselected |
||
Selected |
Multiple Touch
Whether the view processes multiple touch events.
Selection |
Method |
Argument |
---|---|---|
Unselected |
||
Selected |
Appearance
Alpha
The view transparency.
The range of values is from 0.0 and 1.0:
0.0 makes the view completely transparent.
1.0 makes the view completely opaque.
Access: alpha
.
Background
The view background color.
Access: backgroundColor
.
Drawing and Sizing
Autoresize Subviews
Whether the view resizes subviews when the view size changes.
If the view alpha value (alpha
) is 1.0, drawing performance can be improved by indicating that the view is opaque.
Selection |
Method |
Argument |
---|---|---|
Unselected |
||
Selected |
Drawing
Opaque
Whether the drawing system treats the view as opaque.
Hidden
Whether the view is hidden.
Clears Graphics Context
Whether the view clears its bounds before drawing.
Selection |
Method |
Argument |
---|---|---|
Unselected |
||
Selected |
Clip Subviews
Whether subviews are clipped to the view bounds.
If the view alpha value (alpha
) is 1.0, drawing performance can be improved by indicating that the view is opaque.
Selection |
Method |
Argument |
---|---|---|
Unselected |
||
Selected |
Sizing
Stretching
The rectangle that identifies stretchable area of the view.
The values for the rectangle specifiers (X, Y, Width, and Height) are in the range 0.0 to 1.0. For example, to make only half of the view stretchable, specify the rectangle (0.0, 0.0, 0.5, 1.0).
Access: contentStretch
.
Copyright © 2014 Apple Inc. All rights reserved. Terms of Use | Privacy Policy | Updated: 2013-12-16