App (app) life cycle

Source: Internet
Author: User

Status change notification: 1. Delegate method:-(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (nsdictionary *) launchOptions Notification: Uiapplicationdidfinishlaunchingnotification Loading complete program startup 2. Delegate method:-(void) Applicationwillresignactive: (uiapplication *) Application notification: Uiapplicationwillresignactivenotification exit active user Press the Home button call can be used to enable or disable animation, etc. It should not be assumed that the app will go into the background state in Willresignactive, which is just a temporary change 3. Delegate method:-(void) Applicationdidenterbackground: (UIApplication *) Application notification: Uiapplicationdidenterbackground into the background to release all the resources that can be rebuilt, save all user data, close the network connection, etc. 4. Delegate method:-(void) Applicationwillenterforeground: (uiapplication *) application notification: Uiapplicationwillenterforeground is about to enter the foreground to reload the released resources, Load all user profiles, reestablish network connections, etc. 5. Delegate method:-(void) Applicationdidbecomeactive: (uiapplication *) application Notice: Uiapplicationdidbecomeactive into active state when you cut back to the foreground, the call can be used to enable or disable animation, etc. 6. Delegate method:-(void) Applicationwillterminate: (UIApplication *) Application Notice: Uiapplicationwillterminate is about to terminate the application use him as little as possible

App (app) life cycle

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.