【发布时间】:2016-09-18 16:07:09
【问题描述】:
我们曾经在ViewController.h 中使用UIAlertViewDelegate 来制作我们的自定义警报按钮来执行操作,例如在警报窗口中按下再次播放按钮会使游戏重新启动。
我们如何使用UIAlertController(UIAlertView 的替换类)来做到这一点?
我阅读了 Apple 提供的以下文档,但没有看到提到的委托方法。这是否意味着我们不再这样做了?
https://developer.apple.com/reference/uikit/uialertcontroller
【问题讨论】:
-
伊姆兰,非常感谢你。帮了大忙!
-
如果你喜欢我的回答,欢迎点赞
标签: ios objective-c delegates uialertcontroller