cell.imageView は初回読み込み時に正しく表示されます。UITableViewCell が画面から外れて再びオンになった後、突然 cell.imageView のサイズがセルの高さを埋めるように変更されました。セルが強調表示された状態に設定されている場合も同じです。cell.imageView は、インターフェイス ビルダーで作成されます。
(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"CustomCell";
CustomCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[CustomCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
}
NSDictionary *dataType = [self.dataTypes objectAtIndex:indexPath.row];
[cell.imageView setImageWithURL:[NSURL URLWithString:[dataType valueForKey:@"imageURL"]]
placeholderImage:nil];
cell.titleLabel.text = [data valueForKey:@"name"];
cell.descriptionLabel.text = [data valueForKey:@"info"];
return cell;
}