This block declaration is not a prototype Insert ‘void'
在Xcode9中如果定義一個(gè)不帶參數(shù)的block镀迂,通常會(huì)報(bào)上面這個(gè)警告分俯;
解決方案
Block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior Insert 'self->'
當(dāng)用下劃線的方式訪問(wèn)屬性的時(shí)候兰迫,會(huì)有上面這個(gè)警告合陵;