开发者

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."

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜