美文网首页
This application is modifying th

This application is modifying th

作者: 走来走去的280 | 来源:发表于2016-05-19 16:34 被阅读24次

    今天莫名其妙出了这个问题,也不崩溃,也不往下执行。

    后来去查了一下,是线程的问题,需要把UI放置在主线程

    在代码里加上这句就好了~

    dispatch_async(dispatch_get_main_queue(),^{

    // code here

    });

    相关文章

      网友评论

          本文标题:This application is modifying th

          本文链接:https://www.haomeiwen.com/subject/iqsgrttx.html