2

UITableView プロパティを使用して編集しています。theTableView.editing = YES; theTableView.allowsSelectionDuringEditing = YES;

行が選択されており、次のコントローラーに移動していますが、行にaccessoryTypeを表示する必要があります。そのために以下の行を使用していますが、機能していません。インジケーターを表示するために不足しているプロパティやものはありますか。

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 クラスの editAccessoryType プロパティを使用できます。

于 2010-05-06T17:35:09.637 に答える