1

今天我观察到,UITableViewCellAccessoryDetailButton当我的 tableView 处于编辑模式时,我的 editingAccessory ( ) 在右侧太远了。

当打开和关闭编辑时,我可以看到图标从它们的常规位置移动到它们正在编辑的位置。

在我的实现中,我正在使用

- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath {
    return UITableViewCellEditingStyleNone;
}
- (BOOL)tableView:(UITableView *)tableView shouldIndentWhileEditingRowAtIndexPath:(NSIndexPath *)indexPath {
    return NO;
}

编辑

没有更多的代码。这只是一个普通UITableViewController的,编辑按钮运行注意但默认-setEditing:animated:在幕后(据我所知)。

编辑二

在这里找到完整的ViewController 实现

编辑附件故障

4

0 回答 0