I need to implement event when i close my app in iOS like following pic.

I want to catch that event when i close app with that minus button.
Which event i need to do?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This delegete will be called when your application is going to terminate.
If you are using iOS 4 or greater and with multi-tasking support,
applicationWillTerminatewill not be called.For receiving the terminate event you need to add
UIApplicationExitsOnSuspendkey on yourinfo.plistCheck this article for a good understanding about application events.