在我的DetailViewController中我有代码
更新x2
这是我的setEditing
- (void)setEditing:(BOOL)editing animated:(BOOL)animated {
[super setEditing:editing animated:animated];
[tableView setEditing:editing animated:YES]; //this line was added to force editing Mode
....在我的detailViewController中,我想向tableView发送“魔术/任何东西”注册“编辑模式”来更改附件,但我不想打开删除按钮。以前我没有线[tableView setEditing:editing animated:YES];,所以我只想让它拿出配件。
发布于 2010-01-29 09:57:38
你绝对应该解决这个问题。
创建表视图单元格(在tableView:cellForRowAtIndexPath:中)时,将accessoryType属性设置为UITableViewCellAccessoryNone,将editingAccessoryType属性设置为UITableViewCellAccessoryDisclosureIndicator。
您可以这样做,而不是实现不推荐的tableView:accessoryTypeForRowWithIndexPath:方法。
https://stackoverflow.com/questions/2160958
复制相似问题