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"];