iOS 提示用self替换_的警告

最近项目中警告⚠️大增,诸如

Block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior

修改方式如下

Building Settings 中搜索字段

CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF 设置为NO即可

附上stackoverflow的解决链接如下 :https://stackoverflow.com/questions/21577711/block-implicitly-retains-self-explicitly-mention-self-to-indicate-this-is-i

转载于:https://www.cnblogs.com/hzglearn/p/8980085.html

你可能感兴趣的:(iOS 提示用self替换_的警告)