Is it possible to detect if my app is running and displaying on screen?
As we know, ios is supporting multi-task.
But I prefer to get the status if my app is running in front of all app and interact to users.
Welcome any comment
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 flowchart will clarify how the management of the multitasking works in iOS 4.0+:

(taken from here)
What you need to do is just to manage a variable set by the various messages sent to your delegate, eg
applicationWillResignActiveorapplicationDidEnterBackground, in this way you can easily understand in which state is the application and behave accordingly.