0
点赞
收藏
分享

微信扫一扫

去掉ASIHttpRequset中request在block的警告

泠之屋 2022-08-08 阅读 18


在使用ASIHttpRequest时,在setCompletionBlock和setFailedBlock中有"Capturing 'request' strongly in this block is likely to lead to a retain cycle"这样的警告。为了去掉这样的警告在iphone5.0以上的sdk中只需要把__block置换为__weak,就能解决掉这个警告。

举报

相关推荐

0 条评论