How would you anime - reloadData
on UITableView
? Data source is on UIFetchedResultsController
so I can't play with – insertSections:withRowAnimation:
, – deleteSections:withRowAnimation:
wrapped in – beginUpdates
, – endUpdates
.
EDIT: I want to call - reloadData
after NSFetchedResultsController
refetch.
I did category method.
- (void)reloadData:(BOOL)animated { [self reloadData]; if (animated) { CATransition *animation = [CATransition animation]; [animation setType:kCATransitionPush]; [animation setSubtype:kCATransitionFromBottom]; [animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]]; [animation setFillMode:kCAFillModeBoth]; [animation setDuration:.3]; [[self layer] addAnimation:animation forKey:@"UITableViewReloadDataAnimationKey"]; } }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With