I use AFNetworking
in my project,but it have 2 warnings here:
full warning string is:
/AFNetworking/AFHTTPClient.m:575:38: Capturing 'operation' strongly in this block is likely to lead to a retain cycle
Here are two other questions with very good answers about this issue. This is an issue with using strong variables within blocks. To counteract this when using ARC you must use the __weak
declaration. I recommend you read the first link especially to learn more.
EDIT
At first I didn't realize you were seeing this warning in AFNetworking's code. Using the most recent version of AFNetworking I do not see this warning.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.