Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はUITableViewControllerを継承しており、以下の出力のようなものを販売したい
名前画像
名前2 画像2
名前3 画像3
これらはテーブル内の異なるセルです。どうすればそのようなことを実装できますか?
あなたの方法では:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
入れる:
cell.imageView.image = [UIImage imageNamed:@"icon.png"];