简体   繁体   中英

What is the name of the UIView used at the “home” screen of iPhone?

First of all, the question is very simple, but I have tried to look around on the Internet and I couldn't find a name for this. Several applications such as "Ping Lite" have used this view in their application. It allows you to have submodules/applications as icons and you can scroll the page around just like when you are at "home" screen.

Can somebody tells me what is the name of the class that is used there?

This kind of view is not available in the iPhone SDK. It is written by Apple and it's not included in the UIKit framework. It's only available in SpringBoard.app, the application responsible for many features of the OS (kind of Finder.app).

However, you can write it yourself of course, using a UIScrollView . This will take some time but luckily we have the Three20 project, which implements the TTLauncherView class

AFAIK the standard sdk has no such a class. You can check third-party libraries(three20, for example) or customize UIScrollView behaviour

The UIView used at the “home” screen of iPhone is a UIScrollView alongwith UIPageControl.

Check the PageControl sample code from Apple and you will learn how it works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM