美文网首页
Xcode9 对老项目产生的警告解决方案

Xcode9 对老项目产生的警告解决方案

作者: 捷风 | 来源:发表于2018-09-20 09:56 被阅读52次

    This block declaration is not a prototype Insert ‘void'
    在Xcode9中如果定义一个不带参数的block,通常会报上面这个警告;

    解决方案
    截图.png

    Block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior Insert 'self->'
    当用下划线的方式访问属性的时候,会有上面这个警告;

    解决方案
    截图.png

    未完待续......

    相关文章

      网友评论

          本文标题:Xcode9 对老项目产生的警告解决方案

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