One view UIView and UIWindow
1. Display the view of the data
The following classes can display information on the screen:
- Uitestview: Renders a paragraph of text to the user and/allows the user to enter their own text using the keyboard. Can be set to editable or non-editable, using a single font size and a single typeface.
- UILabel: the instance renders a read-only text view of the segment.
- Uiimageviews: Displays the picture.
- Uiwebwiew: Displays Html,pdf or other advanced Web content.
- Mkmapviews: You want to embed the map in your application.
- Uiscrollview: the instance supports rendering of content that is larger than the normal application window size, scroll bar.
2. Make a selection view
- Uialertview: Only two or three options are displayed.
- Uiactionsheet: More than three.
3. Controls
A control is a screen object that the user touches into a callback trigger.
- UIButton: The instance provides a screen button
- Uisegmentedcontrol: Provides a row of buttons of equal size.
- Uiswtich: This class renders the switch selection.
- UISlider: Slider control, which allows the user to select the size of a value within a certain range.
- Uiscrollview: Scrolling view.
- Uipagecontrol: Provides a series of small dots that show a single page and let the user navigate to a later or previous page.
- Uitextfield: A control that enters text.
4. Table and Picker
UITableView: The table renders a scrolling selection list.
5. Columns
- Uinavigationbar, which appears on top of many interfaces, is used to provide navigation status.
- Uitabbarcontroller,uiserchdisplaycontroller
6. Progress and activities
- The Uiactiveityindicatorview provides a spindle-style wheel that is displayed during the processing task. The wheel tells the user that the task will be completed at a certain point in time, but not sure when it is completed.
- Uiprogreessview, the instance provides a progress bar that gradually fills up from left to right, indicating the progress of the task.
two view controller Uiviewcontroller
The view controller can centralize some view management.
View controllers are not views, they are abstract classes that do not have a visual representation, and only the view provides a visual canvas.
1.UIViewController
- Uiviewcontroller is the parent class of the view controller, which is used to manage the main views.
- Manage the life cycle of each master page: from start to finish and to consider possible changes in the view's lifetime.
- Sets the appearance of the view and the child views it displays.
- Responds to views that are showing or disappearing.
2. Navigator Controller Uinavigationcontroller
The Navigator controller allows you to navigate up and down the hierarchical structure of the tree view.
3. Parallel controller Uitabbarcontroller
Parallel controller
4. Table Controller Uitableviewcontroller
Uitableviewcontroller provides a standard connected UITableView instance and automatically sets the delegate and data source to point to itself.
The search display controller is a tabular view that provides a built-in search box through Uisearchbar.
Nsfetchedrsultscontroller can populate UITableView with objects obtained from the core data repository.
5. Address Book Controller
The Address Book user interface framework (ADDRESSBOOKUI.FRAMEWORK) provides several attempts to control the controller, allowing you to select a person from the Address book.
6. Picture Selection controller Uiimagepickercontroller
allows users to select pictures from the built-in albums or use the camera to take pictures or record videos.
7. Mail writing Mfmailcompseviewcontriller
Mfmailcompseviewcontriller allows you to create a user who can customize the mail message directly in the program.
8. Peer Picker Gkpeerpickercontroller
used to discover and link to other iphones.
9.Media Play Controller
Allows you to select and play music and movies
Ios-ui Control Daquan