[IPhone application development] One of iPhone application development: window, view, View Controller and uikit Basics

Source: Internet
Author: User

Andy -- breeze original, reproduced Please note: http://www.cnblogs.com/huangdongcheng/archive/2011/11/05/2236916.html

1. Window: uiwindow

The iPhone rule is a window with multiple views. The window is the bottom layer that you see in the app. It is fixed and can be ignored basically, but you need to know the architecture of each layer.

2. View: uiview

Uiview is the basis for the user to build the interface. All the controls are drawn on this page. You can regard them as a canvas. You can add controls through uiview, and use controls to interact with users and transmit data.

Windows and views are the most basic classes and are used to create user interfaces of any type. A window represents a geometric area on the screen, while the View class draws different controls with its own functions, such as navigation bar and buttons are attached to the View class, A view is linked to a window.

3. View Controller: uiviewcontroller

View Controller uiviewcontroller. You can manage and control the uiview you want to use. You can control the specific uiview you want to display in this uiviewcontroller. In addition, the View Controller adds additional functions, such as built-in rotation screens, transition animations, and support for touch and other events.

4. Introduction to uikit

(1) view of data displayed

Uitextview: presents text paragraphs to users, and allows users to enter their own text on the keyboard.

 

Uilabel: Short read-only text. You can set view attributes to select colors, fonts, and font sizes for labels.

Uiimageview: you can attach an image to uiimageview through uiimage. After loading, you can specify the position and size of the display.

 

Uiwebview: provides HTML, PDF, and other advanced web content. Including documents such as XLS and word.

 

Mkmapview: You can use mkmapview to embed a map into an application. This is the most popular LBS application. You can also combine the mkannotationview and mkpinannotationview class to customize the annotation information annotation map.


 

Uiscrollview: generally used to present a more normalProgramThe window is large. You can scroll horizontally or vertically to view all the content and scale the content.

(2) Select a view

Uialertview: allows users to select or display text to users through the warning view.

 

Uiactionsheet: similar to uialertview. However, when there are many options, you can operate the form. It provides a menu to scroll up from the bottom of the screen.

 

(3) Others

Uibuuton: the buttons we usually touch. The methods we want to execute can be called during triggering.

 

Uisegmentcontrol: You can select multiple options to call different methods.

 

Uiswitch: switch button, which can be enabled or disabled.

Uislideer: sliding button, usually used to control the volume.

 

 

Uitextfield: displays text segments and text given.

Uitableview: Table view, which can define the table view you want. The table header and table row can be customized. A custom table is as follows:

 

Uipickerview: select a bar, which is generally used for date selection.

 

Uisearchbar: search bar, which is generally used for searching.

 

Uitoolbar: toolbar: generally used for the frame on the home page.

 

Uiactivityindicatorview: progress bar, which is generally used to display the download progress.

Uiprogressview: progress bar, which is generally used to display the download progress bar.

 

 

today, we will briefly introduce some commonly used controls for iOS application development, as well as the basic uiview, the relationship between uiwindow and uiviewcontrol is the foundation, which directly affects future development capabilities. Next I will talk about these controls separately. This is the end of today. Thank you ~.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.