iOS Developer Library — Prerelease

Developer

UIKit User Interface Catalog

View

View Attributes Inspector Reference

image: ../Art/uiview_attributes_inspector.pdf

Layout and Tagging

image: ../Art/uiview_attributes_inspector_group-layout_tagging.pdf

Mode

How the view presents its content when the view size changes.

Tag

The view tag.

Access: tag.

Events

image: ../Art/uiview_attributes_inspector_group-events.pdf

Interaction

User Interaction Enabled

Whether the view processes touch and keyboard events.

Selection

Method

Argument

image: ../Art/user_interface_checkbox-unselected.pdf Unselected

userInteractionEnabled

NO

image: ../Art/user_interface_checkbox-selected.pdf Selected

userInteractionEnabled

YES

Multiple Touch

Whether the view processes multiple touch events.

Selection

Method

Argument

image: ../Art/user_interface_checkbox-unselected.pdf Unselected

multipleTouchEnabled

NO

image: ../Art/user_interface_checkbox-selected.pdf Selected

multipleTouchEnabled

YES

Appearance

image: ../Art/uiview_attributes_inspector_group-appearance.pdf

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

image: ../Art/uiview_attributes_inspector_group-drawing_sizing.pdf

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

image: ../Art/user_interface_checkbox-unselected.pdf Unselected

autoresizesSubviews

NO

image: ../Art/user_interface_checkbox-selected.pdf Selected

autoresizesSubviews

YES

Drawing

Opaque

Whether the drawing system treats the view as opaque.

Selection

Method

Argument

image: ../Art/user_interface_checkbox-unselected.pdf Unselected

opaque

NO

image: ../Art/user_interface_checkbox-selected.pdf Selected

opaque

YES

Hidden

Whether the view is hidden.

Selection

Method

Argument

image: ../Art/user_interface_checkbox-unselected.pdf Unselected

hidden

NO

image: ../Art/user_interface_checkbox-selected.pdf Selected

hidden

YES

Clears Graphics Context

Whether the view clears its bounds before drawing.

Selection

Method

Argument

image: ../Art/user_interface_checkbox-unselected.pdf Unselected

clearsContextBeforeDrawing

NO

image: ../Art/user_interface_checkbox-selected.pdf Selected

clearsContextBeforeDrawing

YES

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

image: ../Art/user_interface_checkbox-unselected.pdf Unselected

clipsToBounds

NO

image: ../Art/user_interface_checkbox-selected.pdf Selected

clipsToBounds

YES

Sizing

image: ../Art/uiview_attributes_inspector_group-sizing.pdf

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.