Lan Yi Education Unboxing Application Lifecycle UIView page jump

Source: Internet
Author: User

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

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.