简体   繁体   中英

UITableView setEditing Strange animation in iOS7

When editing a UITableView, I see strange animation.

Here the print screen:

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

When I have a new project with Xcode 4.6.3 (template "Master-Detail Application) and set the UITableView to Style=Grouped and Run on a iOS 7 device, it presents the same problem, if I change to Style=Plain the problem is resolved.

Here the print screen:

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

How I can fix this problem for a UITableView with Style=Grouped ?

Thanks, Hugo

This helped me out with this exact problem:

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

You can not set a table to editing and then immediately set it to not editing. You have to wait for the set to editing animation to finish and then you can set it to not editing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM