Google reveals no posts at all for this error message. I\'m getting it in iOS 5 trying to update a UITableView. While the exact code is a bit tortured, this is what I\'m doi
Looks like your code is trying to work with a section of your table that does not exist.
Since NSArrays are zero-indexed, the index value of count
will be outside the bounds of the array. You should subtract one from the count when using indexSetWithIndex:
here:
[table insertSections: [NSIndexSet indexSetWithIndex: [sections count]-1]
withRowAnimation: UITableViewRowAnimationNone];