1
我在iOS APP中使用ASIHTTPRequest。我這樣做是這樣的: .H警告ASIHttpRequest
@interface MyClassr
ASIFormDataRequest *currentRequest;
}
NSURL *url = [NSURL URLWithString:requestUrl];
currentRequest = [ASIFormDataRequest requestWithURL:url];
[email protected]"GET";
currentRequest.delegate =self;
[currentRequest setCompletionBlock:^{
listesRestaurants = [XMLParser parseRestaurantResponse:[currentRequest responseData]];
NSLog(@"%@",[currentRequest responseString]);
if (apDelegate.modeGeoloc) {
[map removeAnnotations:map.annotations];
[self addAnnotation];
[self calculDistance];
}
和我在線路warnign:[currentRequest setCompletionBlock:^
//塊將由拍攝對象物
//捕獲「自強保留的對象保留'強烈在這個區塊很可能導致一個保留週期
我該如何糾正這個警告?