TableView optimization
- [x] don't reload table if it's hidden
- [ ] if table is visible, reload it every N milliseconds (to avoid freezing in case of log spam)
- [x] reload table frame only at the end of window resize
- [ ] use time profiler and see what else can be done
Hi, I think I might have a problem due to log spam and table view reloading :
2015-03-09 10:39:04.739 ARFreeFlight[5276:1964197] *** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit/UIKit-3318.16.25/UITableView.m:1377 2015-03-09 10:39:49.217 ARFreeFlight[5276:1964197] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'attempt to insert row 260 into section 0, but there are only 3 rows in section 0 after the update'
This exception is thrown from (line 389 in DVFloatingWindow.m) [self.tableView insertRowsAtIndexPaths:@[path] withRowAnimation:UITableViewRowAnimationAutomatic];
Thanks in advance, Djavan