I m new to the iOS. When i press home button in iPhone, application goes into suspend mode is what i know, in the program, how can i capture this event, and clear my local datas?
Kindly advice.
I m new to the iOS. When i press home button in iPhone, application
Share
While you can implement the UIApplicationDelegate methods discussed by others, it is often more convenient (and arguably cleaner) to have objects that need to do clean up register themselves for the corresponding notifications:
E.g.
(If you go this route, don’t forget to remove the observer when the observing object is deallocated.)