简体   繁体   中英

What is the api for Calling Home Screen on iPhone

I want to trigger an event when pressing the home button. Is there any particular api for using that?

Thanks

Shawn

Use applicationWillResignActive and/or applicationWillTerminate. You have a limited amount of time to do stuff in these functions, so be quick.

Make your viewController a NSApplication delegate and the implement

- (void) applicationDidEnterBackground:(UIApplication *)application 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM