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->'
当用下划线的方式访问属性的时候,会有上面这个警告;
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->'
当用下划线的方式访问属性的时候,会有上面这个警告;