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.
views:
126answers:
2
+4
A:
UIScrollView
is the name of the view with pages
UIPageControl
is what you connect to it to add the dots
coneybeare
2009-10-27 04:36:54
+3
A:
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
ACBurk
2009-10-27 05:11:50
Most of the "code to 'lock' the scrolling" is the UIScrollView's pagingEnabled property. Most of the rest of the code in that sample is to 1) load the views in the scroll view, and 2) to keep the scroll view's offset and the page control's currentPage in synch.
Sixten Otto
2009-10-27 06:08:03
Accepted for the sample code. I probably would've hunted around for a while to find the `pagingEnabled` property.
Jesse Beder
2009-10-31 04:44:44