What is the name for the view that manages the iPhone home screen?
-
06-07-2019 - |
Question
My google-fu is failing here. I'm looking for the name of the UIView
(or whatever it is) that handles several pages, with those little glowing dots indicating which page you're on.
Solution
To expand on coneybeare's brief description, there is no special control that does the pages, it is simply a UIView within a UIScrollView with code to 'lock' the scrolling to certain spots (pages). The UIPageControl is simply a display of which position the scrollview is currently locked to.
A perfect example is Apple's sample code/demo here: http://developer.apple.com/iphone/library/samplecode/PageControl/index.html
OTHER TIPS
UIScrollView
is the name of the view with pages
UIPageControl
is what you connect to it to add the dots
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow