Frame and START process

Source: Internet
Author: User

1. The difference between frame and bounds:

Frame is calculated from the upper left corner of the screen, and bounds is calculated from the upper left corner of the view as (0,0) from the new add

Bounds is the reference system, so the point in the upper left is the origin.

Center coordinates Reference parent view coordinate system

2. iOS boot process:

Start with the Main method:

Nsstringfromclass ([Appdelegate class]): Specifies the functionality to execute the implementation in a class that goes to Appdelegate

function of the Uiapplicationmain () method: Create an application's UIApplication object---Create a reference broker instance---establish an event loop and constantly detect the running state of the program (touch shaking)

int Main (intChar * argv[]) {    @autoreleasepool {        return  Class]));}    }

The process of iOS execution:

Start the program--the front desk--will end--into the backstage--will be entering the front desk

is a dead loop that requires a forced end program

Frame and START process

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.