【发布时间】:2015-02-14 02:33:32
【问题描述】:
当点击按钮“ok”时警报自动关闭,如何防止它
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Title"
message:@"Message"
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alert show];
我想点击按钮“确定”而不是关闭警报 ..if(logics){ not dismis } else {dismiss alert }
感谢
【问题讨论】:
-
试试github.com/regexident/DLAlertView 之类的方法,它允许您使用委托或块来响应行为。
-
你想完成什么?
-
重复链接帖子子类
UIAlertView中的解决方案。请记住,UIAlertView现在在 iOS 8 中已弃用,取而代之的是UIAlertController。
标签: ios objective-c uialertview dismiss