Iphone 我可以使XCode UITableViewCellEditingStyle不偏移吗?

Iphone 我可以使XCode UITableViewCellEditingStyle不偏移吗?,iphone,xcode,uitableview,cell,Iphone,Xcode,Uitableview,Cell,我正在Xcode 4.3.1中制作一个新的应用程序,我正在使用一个UITableView,其中我有一个自定义的外观。基本上,我有一个图像,几乎占据了整个320像素。因此,当我执行编辑(重新排列单元格)时,苹果会默认将所有内容向右推50像素左右。我不希望有任何运动,无论是什么。只需显示右侧的小线条,以便拖动单元格。我不允许删除或插入,因此我的样式始终设置为UITableViewCellEditingStyleNone,但在编辑模式下,这会在左侧留下一个小图标的空间,但我希望左侧没有空间,右侧只有行

我正在Xcode 4.3.1中制作一个新的应用程序,我正在使用一个UITableView,其中我有一个自定义的外观。基本上,我有一个图像,几乎占据了整个320像素。因此,当我执行编辑(重新排列单元格)时,苹果会默认将所有内容向右推50像素左右。我不希望有任何运动,无论是什么。只需显示右侧的小线条,以便拖动单元格。我不允许删除或插入,因此我的样式始终设置为UITableViewCellEditingStyleNone,但在编辑模式下,这会在左侧留下一个小图标的空间,但我希望左侧没有空间,右侧只有行可供拖动。有什么想法吗

以下是一些示例代码:

// The editing style for a row is the kind of button displayed to the left of the cell when in editing mode.
- (UITableViewCellEditingStyle)tableView:(UITableView *)aTableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath {
    // No editing style if not editing or the index path is nil.
    if (self.editing == NO || !indexPath)
        return UITableViewCellEditingStyleNone;
    return UITableViewCellEditingStyleNone;
}

看一看

太棒了。有时苹果是如此明显,有时如此神秘。在这种情况下,很明显,如果你知道去哪里找的话。非常感谢。感叹号也有帮助