0

私はUITableViewControllerを継承しており、以下の出力のようなものを販売したい

名前画像

名前2 画像2

名前3 画像3

これらはテーブル内の異なるセルです。どうすればそのようなことを実装できますか?

4

1 に答える 1

1

あなたの方法では:

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

入れる:

cell.imageView.image = [UIImage imageNamed:@"icon.png"];
于 2011-06-01T09:51:25.590 に答える