I want to handle single click and double click on Home button separately. I know applicationWillResignActive:
but it gets call in both conditions. applicationDidEnterBackground:
but I want to process data before app goes in background not after.
Is there any way I can recognise single and double click on home button separately?
Nope. You can only see when your app enters the background (or terminates). You can't see why .
when application in running single click will call
but double click will call only
and will wait for your response.
you can use bool to figure out whether it is double or single click
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.