From: "href =" http://blog.sina.com.cn/s/blog_5f11f3850100rk6r.html "> iPhone controls
Uiview and uiwindow
The rule for the iPhone view is: one window, multiple views. Uiwindow is equivalent to a TV, and uiviews is equivalent to an actor.
1. view of data displayed
The following categories can display information on the screen:
- Uitestview: presents text paragraphs to users and/or allows users to enter their own text on the keyboard. Editable or uneditable, with a single font size and a single font.
- Uilabel: Read-only text view of the Instance presentation segment.
- Uiimageviews: displays an image.
- Uiwebwiew: displays HTML, PDF, or other advanced web content.
- Mkmapviews: To applyProgramEmbedded map.
- Uiscrollview: The instance supports displaying content larger than the normal application window and a scroll bar.
2. Select a view
- Uialertview: only two or three options are displayed.
- Uiactionsheet: more than three.
3. Controls
A widget is a screen object that is converted from a user touch to a callback trigger.
- Uibutton: The instance provides the screen button
- Uisegmentedcontrol: Provides buttons of equal size for a row.
- Uiswtich: provides a simple binary space. Select the class rendering switch.
- Uislider: You can select a value from a specified range by following a horizontal toolbar.
- Uiscrollview: You can move between pages.
- Uipagecontrol: provides a small dot that displays the single-gun page and allows the user to navigate to the back or front of the page.
- Uitextfield: the control that inputs text in sequence.
4. Table and Picker
The table displays a scrolling selection list. Uitableview provides the most brave table style.
5. Column
- Uinavigationbar, which appears on top of many interfaces to provide navigation status.
- Uitabbarcontroller, uiserchdisplaycontroller
6. Progress and Activity
- UiactiveityindicatorviewProvides a spindle-style wheel that is displayed during processing tasks. This round tells the user that the task will be completed at a certain time point, but it is not appropriate to complete.
- Uiprogreessview, the instance provides a progress bar from the left to the right to indicate the progress of the task.
Uiviewcontroller
View controllers can manage certain views in a centralized manner.
View controllers are not views. They are abstract classes without visualization. Only views provide visual canvases.
1. uiviewcontroller
- Uiviewcontroller is the parent class of the View Controller. It is used to manage the main view.
- Manage the lifecycle of each home page: from the beginning to the end, and consider the changes that may occur during the life cycle of the view.
- Set the view appearance and Its subview.
- Response to a view that is being displayed or disappears.
2. Navigator controller uinavigationcontroller
The navigator controller allows you to navigate up and down the hierarchy in the Tree View.
3. Parallel controller uitabbarcontroller
Parallel controller
4. Table ControllerUitableviewcontroller
Uitableviewcontroller provides a standard connected uitableview instance and automatically sets the delegate and data source to your own.
The search display controller is a table view that provides a built-in search box through uisearchbar.
NsfetchedrsultscontrolleR can fill in uitableview with objects obtained from the core data repository.
5. Address Book Controller
The address book user interface framework (addressbookui. Framework) provides several controllers that allow you to select a person from the address book.
6. uiimagepickercontroller
You can select an image from a built-in album or use a camera to take a photo or record a video.
7. Email writing mfmailcompseviewcontrillEr
MfmailcompseviewcontrillEr allows you to create users to customize mail messages directly in the program.
8. Peer selector gkpeerpickercontroller
Used to discover and link other iPhones.
9. Media play Controller
Allows you to select and play music and movies.