Dismissing Alert View of controller or app whose object refference is not available..!
How to dismiss the alert view (and execute its cancellation handler) when my application moves back to the foreground or my refference object is not available? If any one knows please reply. Thanks in ad开发者_Go百科vance..!
I don't think there is a way. You need to keep a reference and subscribe to the UIApplicationDidEnterBackgroundNotification
notifications. When you get that message you can call the dismissWithClickedButtonIndex:animated:
which, as the documentation says, "in iPhone OS 4.0, you may want to call this method whenever your application moves to the background."
精彩评论