Is there any method that I could display a message before sending the app to the background by pressing the home button?
And the app should be stays in the foreground until the user responds to the message being displayed.
though you cant stop ur app from going to background, I have a thought...
you can schedule a UILocalNotificaiton
in applicationWillEnterBackground
and trigger it immediately. Your app will surely move to background but this way you can display ur message there and if user interacts with your message with "Action" button rather than "Cancel", your application will return back in active state.
just sharing my thought.. might be of ur help as I don't exactly know what's ur purpose behind such implementation.