Ios 块不';不执行

Ios 块不';不执行,ios,objective-c,sdwebimage,Ios,Objective C,Sdwebimage,我以这种方式缓存下载和图像,但我的问题是,queryDiskCacheForDisk块不执行 -(void)checkCache :(NSArray *)imgUrl { float circleWidth=0.0; if (dm.screenWidth==320) { circleWidth=53.0; } else if(dm.screenWidth>320) { circleWidth=65.0; }

我以这种方式缓存下载和图像,但我的问题是,
queryDiskCacheForDisk
块不执行

-(void)checkCache :(NSArray *)imgUrl
{
    float circleWidth=0.0;
    if (dm.screenWidth==320) {
        circleWidth=53.0;
    }

    else if(dm.screenWidth>320)
    {
        circleWidth=65.0;
    }
    CGRect circleFrame=CGRectMake(0, 0, circleWidth, circleWidth);
    __block UIImage *savedImage=[com circularScaleAndCropImage:[UIImage imageNamed:@"notFound"] frame:circleFrame];
    SDImageCache *imageCache = [[SDImageCache alloc] initWithNamespace:@"TEAM_PROFILES"];
    [imageCache queryDiskCacheForKey:[imgUrl objectAtIndex:0] done:^(UIImage *image,SDImageCacheType cacheType) {
        // image is not nil if image was found

        if (image) {
            savedImage=[com circularScaleAndCropImage:image frame:circleFrame];

            NSLog(@"----image Cached------");
        }
        else
        {
            //[self performSelectorInBackground:@selector(getImageNew:) withObject:nil];
            savedImage=[self getImageNew:imgUrl];
            [imageCache storeImage:savedImage forKey:[imgUrl objectAtIndex:0]];
        }
    }];

    [arrayImages addObject:savedImage];
    [arrayTeamMemeberNames addObject:[imgUrl objectAtIndex:1]];
    [arrayEmpCodes addObject:[imgUrl objectAtIndex:2]];
    [arrEmpFullName addObject:[imgUrl objectAtIndex:3]];
    [arrEmpNumbers addObject:[imgUrl objectAtIndex:4]];
    if([arrayImages count]==[arrayTeamMembersUnfilter count])
    {
        [[NSNotificationCenter defaultCenter] postNotificationName:@"imagesFilledContact" object:nil];
        NSLog(@"------POST NOTIFICATION-----");

    }
}

它总是添加我在开始时指定的默认图像。如何解决此问题?

在you block中,我没有看到任何
添加操作

你知道你的街区是最后一个要跑的地方吗