我正在使用 UITableView 属性对其进行编辑。theTableView.editing = YES;theTableView.allowsSelectionDuringEditing = YES;
它工作正常,选择了行,我进入下一个控制器,但我需要在行中显示附件类型。我正在使用下面的行,但即使它不起作用。是否有任何属性或缺少任何东西来显示该指标。
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
我将以下代码用于表格视图。
theTableView = [[UITableView alloc] initWithFrame:tableRect style:UITableViewStyleGrouped];
theTableView.editing = YES;
theTableView.allowsSelectionDuringEditing = YES;
theTableView.delegate = self;
theTableView.dataSource = self;
theTableView.scrollEnabled=YES;
theTableView.separatorColor = [UIColor lightGrayColor];
theTableView.autoresizingMask=YES;
theTableView.allowsSelection=YES;
theTableView.sectionHeaderHeight=5;
theTableView.sectionFooterHeight=5;
[myView addSubview:theTableView];
请帮我。
谢谢你,马丹·莫汉