TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jan 2017 |
Maintained by Anton Bukov.
Dynamically hide rows and sections in static UITableView inside UITableViewController.
Just:
pod 'ABStaticTableViewController'
or include this files into your project:
Replace this code of MyTableViewController.h
:
@interface MyTableViewController : UITableViewController
With this code:
@interface MyTableViewController : ABStaticTableViewController
And now you can call this methods to non-animated and animated rows and sections deletions and insertions back:
- (void)insertRowsAtIndexPaths:(NSArray *)indexPaths;
- (void)deleteRowsAtIndexPaths:(NSArray *)indexPaths;
- (void)insertSections:(NSIndexSet *)sections;
- (void)deleteSections:(NSIndexSet *)sections;
- (void)insertRowsAtIndexPaths:(NSArray *)indexPaths
withRowAnimation:(UITableViewRowAnimation)animation;
- (void)deleteRowsAtIndexPaths:(NSArray *)indexPaths
withRowAnimation:(UITableViewRowAnimation)animation;
- (void)insertSections:(NSIndexSet *)sections
withRowAnimation:(UITableViewRowAnimation)animation;
- (void)deleteSections:(NSIndexSet *)sections
withRowAnimation:(UITableViewRowAnimation)animation;
ABStaticTableViewController is released under the MIT License.