Several stages of iOS apps

Source: Internet
Author: User

-(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (nsdictionary *) launchOptions{

Returnyes;

}//program initiated into action--initialize SDK, determine root view operation, etc.

-(void) Applicationwillresignactive: (uiapplication *) application{

}//the action that the application loses focus to perform

-(void) Applicationdidenterbackground: (uiapplication *) application{

}//the application goes into the background----record the page where the background is located

-(void) Applicationdidenterbackground: (uiapplication *) application{

The}//program enters the foreground to perform the operation----Record page verification gesture password and fingerprint password in the application window popup, disappear processing and other issues

-(void) Applicationdidbecomeactive: (uiapplication *) Application {

Restart any tasks this were paused (or not yet started) while the application is inactive. If the application is previously in the background, optionally refresh the user interface.

}//The program is already in focus

-(void) Applicationwillterminate: (uiapplication *) Application {

Called when the application are about to terminate. Save data if appropriate. See also Applicationdidenterbackground:.

}//the operation that the program was terminated

This can be analogous to the life cycle of the view, in the defined time period of processing from the view launch to the view of the destruction process to understand the comparison, to perform the corresponding operation.

Several stages of iOS apps

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.