以编程方式隐藏UIAlertView? [英] Hide UIAlertView programmatically?
本文介绍了以编程方式隐藏UIAlertView?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法以编程方式隐藏UIAlertView?实际上我在UIAlertView中添加了一个UITextField,当用户按下键盘返回键时,我想执行与Ok按钮相同的操作。
Is there a way to hide UIAlertView programmatically? Actually I have added a UITextField in UIAlertView and I want to perform the same operation as on "Ok" button press when a user hits the keyboard return key.
推荐答案
致电
[theAlertView dismissWithClickedButtonIndex:0 animated:YES];
。
这篇关于以编程方式隐藏UIAlertView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文