I want to get message when system show UIAlertView so I can pause my game.
Anyone know how to figure out that?
The UIAlertView is not controlled by myself.
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.
Application delegate’s
applicationWillResignActive:will be called on interrupts. You can handle the pause there or you can even listen to theUIApplicationWillResignActiveNotificationin your view controller and pause the game there.You can look at
this partof the iOS Application Guide that details the life cycle of the application and state transitions.