小编Meg*_*ain的帖子

断言失败 - [UITableView _endCellAnimationsWithContext]

我正在解析一个xml文件并将其解析的值放在一个表视图中.表视图只有一个部分.但我得到以下异常:

2013-10-14 15:21:57.250 tableview [6068:907] *断言失败 - [UITableView _endCellAnimationsWithContext:],/ SourceCache/UIKit/UIKit-2380.17/UITableView.m:909 2013-10-14 15:22: 11.227 tableview [6068:907]由于未捕获异常'NSInternalInconsistencyException'而终止应用程序,原因:'尝试将第0行插入第0部分,但更新后第0部分只有0行'**第一次抛出调用堆栈:(0x33e752a3 0x3bcde97f 0x33e7515d 0x3474aab7 0x35cb0a9f 0x35de6b27 0x6a10f 0x69ce5 0x33dc6037 0x346dc599 0x6b54b 0x3478c0f5 0x33e4a683 0x33e49ee9 0x33e48cb7 0x33dbbebd 0x33dbbd49 0x379702eb 0x35cd1301 0x68bdd 0x68b64)libc ++ abi.dylib:终止调用抛出异常

代码是:

/**
 The NSOperation "ParseOperation" calls addFiles: via NSNotification, on the main thread which in turn calls this method, with batches of parsed objects. The batch size is set via the kSizeOfEarthquakeBatch constant.
 */
- (void)addFilesToList:(NSArray *)files {

    NSInteger startingRow = …
Run Code Online (Sandbox Code Playgroud)

cocoa-touch objective-c assertions uitableview ios

5
推荐指数
2
解决办法
2万
查看次数

标签 统计

assertions ×1

cocoa-touch ×1

ios ×1

objective-c ×1

uitableview ×1