Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
dispatch_async(dispatch_get_global_queue(0,0), ^{
       NSData * imageData = [[NSData alloc] initWithContentsOfURL: [NSURL URLWithString:imageString]];
        NSData * imageData1 = [[NSData alloc] initWithContentsOfURL: [NSURL URLWithString:[NSString stringWithFormat:@"%@%@",IMAGEFETCH,[[storeArray objectAtIndex:indexPath.row] objectAtIndex:10]]]];
        if ( imageData == nil )
            return;
        dispatch_async(dispatch_get_main_queue(), ^{
            // WARNING: is the cell still using the same data by this point??
            cell.img_productImage.image = [UIImage imageWithData: imageData];
            cell.img_logoImage.image = [UIImage imageWithData: imageData1];
        });

    });
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900