sakkaras / SKSTableView

An expandable table view.
MIT License
446 stars 115 forks source link

SKSTableView can not use reloadData and crash #15

Closed tsyouasd closed 9 years ago

tsyouasd commented 10 years ago

Terminating app due to uncaught exception 'NSRangeException', reason: '*\ -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array'

if i set numberOfRowsInSection is empty and use self.navigationItem.rightBarButtonItem click action "collapseSubrows" to reloadData tableview and then change numberOfRowsInSection not empty return ,application crash Error at [self.expandableCells[@(correspondingIndexPath.section)][correspondingIndexPath.row][kIsExpandedKey] boolValue];

sakkaras commented 9 years ago

I did not encounter any crash after using refreshData, refreshDataWithScrollingToIndexPath: for reloading tableview.