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