处理程序块自动调用两次,图像下载两次

时间:2016-10-14 06:42:56

标签: objective-c handler

[HTTPReq postRequestWithPath:@"" class:nil parameters:dictRequest completionBlock:^(id result, NSError *error) {
   if (result)
   {
     NSDictionary *dictResult = result;    
      if([[dictResult valueForKey:@"message"] isEqualToString:@"success"]){
      //if success i download the image..
   }

1 个答案:

答案 0 :(得分:0)

我找到了解决方法。解决方案是缓存正在下载的图像。