ios - 在 UITableview 中创建 2 列

标签 ios objective-c uitableview

<分区>

Possible Duplicate:
iPhone Multiple Columns in UITableView

任何人都可以帮助如何在 ios 中创建 2 列表格 View ?

最佳答案

您必须为此任务创建自定义单元格 View 。并在您的 TableView 中添加此自定义单元格。

查看此链接了解更多信息 Link Link 2

根据您的查询,您只需创建 customButton 而不是图像,然后将图像和 tagValue 设置为该按钮,因此无论何时按下按钮,您都可以使用 tagValue 进行识别。

对于你的表格行

bt1.tag = [NSString stringWithFormat:@"%d0",indexPath.row];
bt2.tag = [NSString stringWithFormat:@"%d1",indexPath.row];

然后操纵它..:)

关于ios - 在 UITableview 中创建 2 列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13678364/

相关文章:

iphone - 是否可以确定 UIImage 是否可拉伸(stretch)?

ios - Obj-C/Swift 项目中的致命陷阱异常

ios - 使用自定义类时删除行的问题

arrays - 当仅按下一个 Swift 时,阵列中的多个开关被激活

ios - 导航 Controller popViewControllerAnimated : yes is not working as expected

iphone - WhatsApp - 从 iOS 共享图像

iphone - iOS 6 : AVPlayerItem PresentationSize returning zero - (naturalSize method Deprecated on iOS 5)

iphone - iOS - 将 block 传递给函数

iOS 如何在我滚动到底部 Swift 4 时更新表格 View 数据

ios - UITableView - 在索引路径问题处插入和删除行