Guest User

Untitled

a guest
Jun 23rd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. #import <Foundation/Foundation.h>
  2.  
  3. NS_ASSUME_NONNULL_BEGIN
  4.  
  5. @interface SETableViewBatchUpdate : NSObject
  6. - (instancetype)init NS_UNAVAILABLE;
  7. - (instancetype)initWithTableView:(UITableView *)tableView NS_DESIGNATED_INITIALIZER;
  8. - (void)runAnimated:(BOOL)animated completion:(void (^ _Nullable)())completion;
  9. @property (nonatomic, assign, readonly) BOOL hasUpdates;
  10. @end
  11.  
  12. @interface SETableViewBatchUpdate (Convenience)
  13. - (void)insertSections:(NSIndexSet *)sections withRowAnimation:(UITableViewRowAnimation)animation;
  14. - (void)deleteSections:(NSIndexSet *)sections withRowAnimation:(UITableViewRowAnimation)animation;
  15. - (void)reloadSections:(NSIndexSet *)sections withRowAnimation:(UITableViewRowAnimation)animation NS_AVAILABLE_IOS(3_0);
  16. - (void)moveSection:(NSInteger)section toSection:(NSInteger)newSection NS_AVAILABLE_IOS(5_0);
  17. - (void)insertRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation;
  18. - (void)deleteRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation;
  19. - (void)reloadRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation NS_AVAILABLE_IOS(3_0);
  20. - (void)moveRowAtIndexPath:(NSIndexPath *)indexPath toIndexPath:(NSIndexPath *)newIndexPath NS_AVAILABLE_IOS(5_0);
  21. @end
  22.  
  23. NS_ASSUME_NONNULL_END
Add Comment
Please, Sign In to add comment