Ui1_ First day _ios overview

Source: Internet
Author: User

IOS: Mobile OS------------"ios7.0 change, tend to flatten

UI: User interface, which is a variety of page elements

Create a project

Xcode

iOS-->application-> templates (multiple templates) singleview---> Settings devices properties: IPad, IPhone, Universal (Universal)

Engineering Introduction

Main documents covered by the project

1) files contained in supporting files have Info.plist and main.m files (main function, entry function)

2) project folder Appdelegate (main function will be the implementation of the project to Appdelegate to complete)

Note: Delete files (after deleting mainstoryboard, you need to click on the project file----"General-----" DeployMent Info-------"maininterface to delete main)

Simulator Settings and Operations

1) Add Emulator Window menu-----Devices options------->+ options

2) Adjust simulator size commond+1 or 2 or 3

3) Home key is equivalent to Commond+shift+h

Creation of UIWindow and UIView

UIWindow-------equivalent to Artboards

UIView-----------equivalent to paper
UIView: A rectangular area on the screen
1) coordinate system ----------" screen size cell phone model coordinates based on the point to divide the actual pixels (for developers to consider)
3GS 320*480 320*480

4, 4s 320*480 640*960

5 320*568 640*1136

6, 6s 375*667 750*1134

6+, 6s+ 414*736 1080*1920

2)frame: The position relative to the parent view (bounds relative to the parent view)

3)bounds: A coordinate system each view has a bounds, modify bounds does not have any impact on this view, but will affect the child view, (real development, do not easily modify bounds)

4)Center: Hub Point Type

Ui1_ First day _ios overview

Related Article

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.