3

私はこれをやっています:

(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath*)indexPath {

static NSString *CellIdentifier = @"Cell";

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];

if (cell == nil) {

    cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle 

reuseIdentifier:CellIdentifier];

    cell.imageView.image = [UIImage imageNamed:[[self.articlesArray 

objectAtIndex:indexPath.row]objectForKey:@"images"]];

  //  [cell.imageView setImageWithURL:[NSURL URLWithString:[[self.articlesArray 

objectAtIndex:indexPath.row]objectForKey:@"images"]]];


}

return cell;

}

私はこれをやっています:

cell.imageView.image = [UIImage imageNamed:[[self.articlesArray 

objectAtIndex:indexPath.row]objectForKey:@"images"]];

しかし、私の中には何も表示されていませんUITableViewCell

そして、左側の左側に画像を表示したいtableViewCell

どうすればこれができるか教えてください。

4

1 に答える 1