Xcode9 对老项目产生的警告解决方案
2018-09-20 本文已影响52人
捷风
This block declaration is not a prototype Insert ‘void'
在Xcode9中如果定义一个不带参数的block,通常会报上面这个警告;
解决方案

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