You use the
UIPageControl class to create and manage page controls. A page control displays a horizontal series of dots, each of which corresponds to a page in the application’s document (or other data-model entity). The currently viewed page is indicated by a white dot.
- iOS 2.0+
- tvOS 2.0+
For an example of a page control, see the Weather application (with a number of locations configured) or Safari (with a number of tab views set).
When a user taps a page control to move to the next or previous page, the control sends the
valueChanged event for handling by the delegate. The delegate can then evaluate the
currentPage property to determine the page to display. The page control advances only one page in either direction.
For more information about appearance and behavior configuration, see Page Controls.