如何添加图像和文本,如下面的快照所示?我已经在我的应用程序中使用导航 Controller ,所以将 UITableView Controller 作为主页的新导航页面包含在内是否有任何问题。
最佳答案
在配置 UITableViewCell
时,您可以将 UIImageView
和 UILabel
添加到单元格 contentView
。
UITableViewCell *cell = ...;
UIImageView *yourImageView = ...;
UILabel *yourLabel = ...;
[cell.contentView addSubview:yourImageView];
[cell.contentView addSubview:yourLabel];
关于ios - 如何自定义 UITableView?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12330892/