开发者

UITableView Exception After Rendering

I'm getting this error when a load a UITableView. It's occurring after the nib loads, but before either the cellForR开发者_如何学运维owAtIndexPath, numberOfRowsInSection or other related methods are called.

The object it is backed onto is empty, but it still occurs when there is an object there (it's an NSMutableArray).

*** Assertion failure in -[_UITableViewUpdateSupport _computeRowUpdates], /SourceCache/UIKit/UIKit-1860.2/UITableViewSupport.m:263

2011-08-12 12:24:00.616 WheresNext[684:707] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unable to resolve row for index path: <NSIndexPath 0x1d18f0> 2 indexes [0, 1]'

This doesn't however occur in the Simulator, only on devices.

Any ideas?


This error occurs often when it exists an inconsistency between the rows you add to your TableView and the number of rows return by tableView:numberOfRowsInSection:.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜