【发布时间】:2015-07-16 12:52:31
【问题描述】:
在UIAlertController之外点击时如何关闭UIAlertController?
我可以添加 UIAlertAction 样式 UIAlertActionStyleCancel 来关闭 UIAlertController。
但我想添加当用户在UIAlertController 之外点击时UIAlertController 将关闭的功能。怎么做?谢谢。
【问题讨论】:
-
嗨 Leizh00701 看看这个stackoverflow.com/questions/25466718/…
-
发件人是什么 :UIControl *aControl = (UIControl *) sender;
-
UIControl 是控件对象的基类,例如将用户意图传达给应用程序的按钮和滑块,请查看developer.apple.com/library/ios/documentation/UIKit/Reference/…
标签: ios uialertview uialertcontroller