开发者

What is the name for the view that manages the iPhone home screen?

开发者 https://www.devze.com 2022-12-10 00:49 出处:网络
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.U

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.


UIScrollView is the name of the view with pages
UIPageControl is what you connect to it to add the dots


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

0

精彩评论

暂无评论...
验证码 换一张
取 消