#在蓝懿学习iOS的日子 #day9

Source: Internet
Author: User

To change the Singleview project into an empty project

1. Remove Viewcontroller and SB

2. Under the root directory, delete the main inside the Maininterface

3. Create Viewcontroller Note When you create the Xib hook

4. Create window in Didfinishluaching method inside Appdelegate

5. Let the rootviewcontroller of window create the page for itself

The life cycle of an application:

1. Loading has been completed

2. has become active

Go out by the pie

1. Going to lose activation

2. has entered the backstage

Press twice to get the pie back.

1. Will enter the front desk

2. has become active

Press twice for the pie to end the program

Going to end the program

Forward Pass value step:

1. Declare a property in the. h of Class B to receive

2. Assigning a property to Class B objects when Class A creates class B

Reverse Call steps:

1. Declare an attribute of type A in Class B delegate to weak

2. When Class A creates class B, assigns the delegate of Class B to self

3. Declare a method to invoke in Class A

4. To invoke the method in Class A by Self.delegate in class B

#在蓝懿学习iOS的日子 #day9

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.