サーバーから画像の URL を取得し、次を使用してこの画像を png 形式に変換しています。[data1 writeToFile:pngFilePath アトミック:YES];
しかし、シミュレーターでプロセスを完了した後に確認すると、一部の画像が破損しています。したがって、これらの画像は必要な場所にアプリに表示されません。
一部画像が乱れているので添付画像をご覧ください。
アップデート
サーバーから画像を取得するループ内のメソッドを並列に呼び出して、didFinishLoading を実行しています。 UIImage *img = [UIImage imageWithData:self.data];
NSArray *split = [self.strImageName componentsSeparatedByString:@"/"];
int arrCount=[split count];
NSString *imageName=[split objectAtIndex:arrCount-1];
NSString *docDirec = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
NSString *pngFilePath=nil
pngFilePath = [NSString stringWithFormat:@"%@/Thumbs/%@",docDirec,imageName];
NSData *data1 = [NSData dataWithData:UIImagePNGRepresentation(img)];
[data1 writeToFile:pngFilePath atomically:YES];
[self.data release]; //don't need this any more, its in the UIImageView now
self.data=nil;