iOS Developer Library — Prerelease

Developer

UIKit User Interface Catalog

Page Control

Page Control Attributes Inspector Reference

image: ../Art/uipagecontrol_attributes_inspector.pdf

Behavior and Pages

image: ../Art/uipagecontrol_attributes_inspector_group-behavior_and_pages.pdf

Number of Pages

The number of pages the page control shows.

Access: numberOfPages

Current

The index of the page control current page.

Access: currentPage

Behavior

Hides for Single Page

Whether the page control is hidden when the number of pages is 1.

Choice

Method

Argument

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

hidesForSinglePage

NO

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

hidesForSinglePage

YES

Defers Page Display

Whether the page control defers updating its display when the user selects a page.

When display-update is deferred, the page control does not update its display when the user selects a page. To update the display, call updateCurrentPageDisplay.

Choice

Method

Argument

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

defersCurrentPageDisplay

NO

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

defersCurrentPageDisplay

YES

Appearance

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

Tint Color

The color of the page control dots that correspond to non-open pages.

Access: pageIndicatorTintColor

Current Page

The color of the page control dot that corresponds to the currently open page.

Access: currentPageIndicatorTintColor