UITableView
Last.fm API から読み取ったアーティストのリストを表示しようとしています。すべてのアーティストを配列に保存してから、名前と写真を含むテーブルを表示します。
最初は写真がきれいに見えますが、スクロールすると画像が非常に小さくなります。
これは最初の外観です。
これは、問題のあるスクロール後の外観です。
これは、セルを作成するための私のコードです:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"TopArtistCell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
JSCArtist *artist = self.artists[indexPath.row];
cell.textLabel.text = [artist name];
[cell.imageView setImageWithURL:[NSURL URLWithString:[[artist photo] thumbnail]] placeholderImage: [UIImage imageNamed:@"default_photo.jpeg"]];
return cell;
}