UIAlertView

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都是放在主线程,究其原因我也说不清楚,想了解请看博客

posted on 2015-11-08 11:58  陌上红尘  阅读(125)  评论(0编辑  收藏  举报

导航