【发布时间】:2012-01-02 10:28:41
【问题描述】:
我有以下代码:
AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest: request];
operation.completionBlock = ^{
if([operation hasAcceptableStatusCode]){
}
};
ARC 似乎不喜欢 [操作 hasAcceptableStatusCode],并且我收到以下警告:“在此块中强烈捕获 '操作' 可能会导致保留周期”。
我对引用不是很有经验,知道这里有什么方法吗?
谢谢,
谢
【问题讨论】:
标签: iphone ios automatic-ref-counting weak-references afnetworking