Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import <Foundation/Foundation.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface SETableViewBatchUpdate : NSObject
- - (instancetype)init NS_UNAVAILABLE;
- - (instancetype)initWithTableView:(UITableView *)tableView NS_DESIGNATED_INITIALIZER;
- - (void)runAnimated:(BOOL)animated completion:(void (^ _Nullable)())completion;
- @property (nonatomic, assign, readonly) BOOL hasUpdates;
- @end
- @interface SETableViewBatchUpdate (Convenience)
- - (void)insertSections:(NSIndexSet *)sections withRowAnimation:(UITableViewRowAnimation)animation;
- - (void)deleteSections:(NSIndexSet *)sections withRowAnimation:(UITableViewRowAnimation)animation;
- - (void)reloadSections:(NSIndexSet *)sections withRowAnimation:(UITableViewRowAnimation)animation NS_AVAILABLE_IOS(3_0);
- - (void)moveSection:(NSInteger)section toSection:(NSInteger)newSection NS_AVAILABLE_IOS(5_0);
- - (void)insertRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation;
- - (void)deleteRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation;
- - (void)reloadRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation NS_AVAILABLE_IOS(3_0);
- - (void)moveRowAtIndexPath:(NSIndexPath *)indexPath toIndexPath:(NSIndexPath *)newIndexPath NS_AVAILABLE_IOS(5_0);
- @end
- NS_ASSUME_NONNULL_END
Add Comment
Please, Sign In to add comment