开发者

How to take control of Dismissal of UIAlertView in iPhone

开发者 https://www.devze.com 2023-01-21 04:29 出处:网络
I need to know if I can decide in the action method of the Buttons of UIAlertView whether to dismiss the alertView or not. In short On click开发者_高级运维 of certain buttons of AlertView, I dont want

I need to know if I can decide in the action method of the Buttons of UIAlertView whether to dismiss the alertView or not. In short On click开发者_高级运维 of certain buttons of AlertView, I dont want my alert view to dismiss.


There's no way that I know of to do this. But it sounds like you're using UIAlertView in a manner for which it's not really intended. What are you actually trying to accomplish?


I ended up adding my own custom button instead of using the ones provided by the AlertView. After assigning my own actions to this Buttons I was able to control the dismissal of the alertview from those actions.

0

精彩评论

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