The main content of today's study:
Unboxing://Convert the base data type to an object type (object before plus *), take the number out of the array, and turn the struct into the object type (the struct is not added *).
Application life cycle:
Run for the first time:
1. Already running complete 2. Activated
Exit by Pie:
1. Going to lose activation 2. Has entered the background
Press twice to return the pie:
1. Will enter the front desk 2. Activated
Common Uses of UIView:
Superview get the parent view of a control
SubView get all the child views
Addsubview Adding a child view
Insertsubview Insert a child view, you can add a child view to the specified location
Removefromsuperview Delete
[Self.view bringsubviewtofront:l]; bring a child view to the front of the display.
[Self.view exchangesubviewatindex:2 Withsubviewindex:3] Swap the display locations of sub-views 2 and 3
[V.alpha] Modifying the transparency of a control
V.hidden = YES Hide Control
V.backgroundcolor background Color
? Two ways to create a page:
1 Create a page through code, and storyboard irrelevant;
Secondviewcontroller *VC = [[Secondviewcontroller alloc]init];
2, create a page through storyboard, and storyboard about
Secondviewcontroller *VC = [self.storyboardinstantiateviewcontrollerwithidentifier:@ "SECONDVC"];
Jump to a page
[Self PRESENTVIEWCONTROLLER:VC animated:yes completion:nil];
Return from a page
[Self dismissviewcontrolleranimated:yes completion:nil];
Lan Yi Education Unboxing Application Lifecycle UIView page jump