首页 > 其他 > 详细

UIAlertView

时间:2015-11-08 14:44:51      阅读:268      评论:0      收藏:0      [点我收藏+]

This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes.  This will cause an exception in a future release.

UIAlertView已经被苹果官方禁用一段时间,新的工程建议使用UIAlertController替代。

今天做个小demo用了一下,发现代码有屎黄的警告不说,运行起来还会在debug区打印出上面一段提示。意思大致是说它使用了子进程导致该异常。

我们都知道更新UI都是放在主线程,究其原因我也说不清楚,想了解请看博客

UIAlertView

原文:http://www.cnblogs.com/mmhc/p/4947074.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!