uialertcontroller专题提供uialertcontroller的最新资讯内容,帮你更好的了解uialertcontroller。
我想知道有没有人知道UIAlertViews和UIAlertController在iOS 8上不会滚动的事实的一个很好的解决方案?这是一个例子: [[[UIAlertView alloc] initWithTitle:@"Test" message:@"long string\nlong string\nlong string\nlong string\nlong string\nlong str
作者:dom,原文链接,原文日期:2015-11-25 译者:小袋子;校对:lfb_CD;定稿:千叶知风 两个月前,我曾发布了一篇如何测试 UIAlertController的文章。一个读者发现测试没有如期地起作用: @dasdom 你的测试是正常的,但是在 MockUIAction 中的简便 init 方法没有被调用。你不能重写 init 方法,看起来像是 iOS 的bug。 — Larhyth
let alert:UIAlertController = UIAlertController(title: "message" ,message: "Thank you clicking",preferredStyle: UIAlertControllerStyle.Alert) alert.addAction(UIAlertAction(title: "close AlertView"