1

编辑 UITableView 时,我看到奇怪的动画。

这里是打印屏幕:

https://dl.dropboxusercontent.com/u/17347115/errorUiTableViewSetEditing.png

当我有一个带有 Xcode 4.6.3 的新项目(模板“Master-Detail Application)并将 UITableView 设置为 Style=Grouped 并在 iOS 7 设备上运行时,如果我更改为 Style=Plain 问题,它会出现同样的问题已解决。

这里是打印屏幕:

https://dl.dropboxusercontent.com/u/17347115/errorTemplateDefault.png

我如何解决 UITableView 与 Style=Grouped 的这个问题?

谢谢,雨果

4

2 回答 2

1

这帮助我解决了这个确切的问题:

- (BOOL)tableView:(UITableView *)tableView shouldIndentWhileEditingRowAtIndexPath:(NSIndexPath *)indexPath {
    return NO;
}
于 2013-11-14T20:02:55.323 回答
0

您不能将表格设置为编辑,然后立即将其设置为不编辑。您必须等待设置为编辑动画完成,然后您可以将其设置为不编辑。

于 2013-10-29T15:57:34.327 回答