在swift 中使用UIAlertView崩溃的问题 IOS swift 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 alertView.delegate=self回调方法写了没? 查了一下文档,得知UIAlertView在iOs8已经是depreciated的哦,同时init方法带参数初始化已经取消,目前还是可以通过你的第二种方法来实现,但Apple已经提供了替代品:let alertController = UIAlertController(title: "标题", message: "内容", preferredStyle: UIAlertControllerStyle.Alert)alertController.addAction(UIAlertAction(title: "确认", style: UIAlertActionStyle.Default, handler: nil))self.presentViewController(alertController, animated: true, completion: nil)意思是把Alert提到了ViewController的等级,个人感觉这样挺好的 请教rootViewController是在那里赋值的? ipad 动态电子杂志制作 Xcode 安装错误 ,提示评估软件包的javascript时发生错误 如何编译linphone opengl es 2.0 Renderbuffer的问题 如何系统深入地学习网络和线程这两个大的技术点? ios 为什么UICollectionViewCell拖线UIImageView无法显示图片 oc类别和扩展 ios app 接入第三方支付,如何保证安全,防止被别人模拟调用,刷单 app下載問題 初级iOS 问题,关于 ScrollView 和 textView swift网络请求
回调方法写了没?
alertController.addAction(UIAlertAction(title: "确认", style: UIAlertActionStyle.Default, handler: nil))
self.presentViewController(alertController, animated: true, completion: nil)意思是把Alert提到了ViewController的等级,个人感觉这样挺好的