我知道我以前做过这个,但我就是想不通了。
我将使用什么方法来查看是否按下了取消按钮。我不想根据按钮索引来做。有一种方法可以做到,比如:
[alertView isCancelIndex:index];
有人知道吗?
最佳答案
UIAlertView 有取消按钮索引的属性
@property(nonatomic) NSInteger cancelButtonIndex
用法
[alertView cancelButtonIndex]
关于iphone - UIAlertView 判断取消按钮是否被选中的简单方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6928791/