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.
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.
though you cant stop ur app from going to background, I have a thought…
you can schedule a
UILocalNotificaitoninapplicationWillEnterBackgroundand 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.