UITableView EndUpdates crash in ios 8 beta

I wrote the code

[self.pItemArray insertObject:breakingItem atIndex:0]; NSArray *array = [NSArray arrayWithObject:[NSIndexPath indexPathForRow:0 inSection:0]]; [self.pTable beginUpdates]; [self.pTable insertRowsAtIndexPaths:array withRowAnimation:UITableViewRowAnimationNone]; [self.pTable endUpdates]; 

But it only crashes in ios 8 on endUpdtes.

Failure Claim in - [UITableView _endCellAnimationsWithContext:], / SourceCache / UIKit / UIKit-3302.3.1 / UITableView.m: 1581

It works fine in ios7 or lower.

Please, help.

+5
source share

Source: https://habr.com/ru/post/1201816/


All Articles