Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void) handleTimer: (NSTimer *) timer {
- if(!self.editing){
- reportings = [Reporting getReportings:@"0"];
- NSMutableArray *indexPaths = [[NSMutableArray alloc] init];
- for(int i=0; i < reportings.count; i++){
- [indexPaths addObject:[NSIndexPath indexPathForRow:i inSection:0]];
- }
- [tableView beginUpdates];
- [tableView insertRowsAtIndexPaths:indexPaths withRowAnimation:UITableViewRowAnimationTop];
- [tableView endUpdates];
- }
- }
Add Comment
Please, Sign In to add comment