A control that displays a horizontal series of dots, each of which corresponds to a page in the app’s document or other data-model entity.
SDKs
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
class UIPageControl : UIControl
Overview
For an example of a page control, see the Weather app when it's configured to display information for more than one location.
When a user taps a page control to move to the next or previous page, the control sends the value
event for handling by the delegate. The delegate can then evaluate the current
property to determine the page to display. The page control advances only one page in either direction. The currently viewed page is indicated by a white dot. Depending on the device, a certain number of dots are displayed on the screen before they are clipped.