Appdelegate. m for iOS development

Source: Internet
Author: User

# Import "helloappdelegate. H"

@ Implementation helloappdelegate

// Customize the User-Defined point after the application starts

-(Bool) Application :( uiapplication *) Application didfinishlaunchingwitexceptions :( nsdictionary
*) Launchoptions

{

Return
Yes;

}

// Stop the application

-(Void) applicationwillresignactive :( uiapplication *) Application

{

}

// Release shared resources, store user files, invalid time, and place sufficient application form information

-(Void) applicationdidenterbackground :( uiapplication *) Application

{

}

// Release shared resources, store user files, invalid time, and place sufficient application form information

-(Void) applicationwillenterforeground :( uiapplication *) Application

{

}

// Resume the stopped task program

-(Void) applicationdidbecomeactive :( uiapplication *) Application

{

}

// After the program form changes, wait until the method ends. When a program supports background multi-task processing, you can use this method to end the execution after you select to exit the background task.

-(Void) applicationwillterminate :( uiapplication *) Application

{

}

@ End

The remarks are missing in xcode4.6.3 of the new version.

# Pragma mark-

# Pragma mark Memory Management

// Release the available memory to the program whenever possible, and even if a warning is sent

-(Void) applicationdidreceivememorywarning :( uiapplication *) Application {

}

-(Void) dealloc {

[Viewcontroller release];

[Window release];

// Execute memory cleanup

[Super dealloc];

}

Because the new iOS version xcode4.6.3 supports automatic memory cleanup, the program's local memory warning is not mentioned. It may be because the memory is usually low and we seldom perform special processing. Therefore, the new version xcode4.6.3 is creating appdelegate. not mentioned at H.

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.