私はこのように私のcellViewsを構築しています:
- (UITableViewCell *)cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString* cellIdentifier=@"cell";
UITableViewCell* cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
if(cell == nil)
{
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier] autorelease];
}
UIImageView cellView = [[UIImageView alloc] initWithFrame:rectCellFrame];
NSError* error=nil;
NSData* imageData = [NSData dataWithContentsOfURL:imageArray[indexPath.row] options:NSDataReadingUncached error:&error];
UIImage* theImage= [UIImage ImageWithData:imageData];
[cellView setImage:theImage];
[cell addSubView:cellView];
.
.
.
.
[cell addSubView:moreViews];
}
読み込み時間は (画像がキャッシュされている場合でも) 非常に遅いため、これを並行処理する必要があります。しかし、UIViews/UIImageViews で自分のコードを引き続き使用したいと思います。プレースホルダーを表示する方法はありますか?関連する場合、つまり、すべてのサブビューからの cellView の構築が完了したら、プレースホルダーの代わりに画像を更新しますか?