在使用ASIHttpRequest时,在setCompletionBlock和setFailedBlock中有"Capturing 'request' strongly in this block is likely to lead to a retain cycle"这样的警告。为了去掉这样的警告在iphone5.0以上的sdk中只需要把__block置换为__weak,就能解决掉这个警告。
去掉ASIHttpRequset中request在block的警告
阅读 18
2022-08-08
在使用ASIHttpRequest时,在setCompletionBlock和setFailedBlock中有"Capturing 'request' strongly in this block is likely to lead to a retain cycle"这样的警告。为了去掉这样的警告在iphone5.0以上的sdk中只需要把__block置换为__weak,就能解决掉这个警告。
相关推荐
精彩评论(0)