2

我正在使用 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];

请帮我。

谢谢你,马丹·莫汉

4

1 回答 1

7

您可以使用 UITableViewCell 类的 editingAccessoryType 属性。

于 2010-05-06T17:35:09.637 回答