Dynamically hide rows and sections in static UITableView inside UITableViewController.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ABStaticTableViewController.xcodeproj
ABStaticTableViewController
ABStaticTableViewControllerTests
.gitignore
.swift-version
ABStaticTableViewController.h
ABStaticTableViewController.m
ABStaticTableViewController.podspec
LICENSE
README.md

README.md

#ABStaticTableViewController

Dynamically hide rows and sections in static UITableView inside UITableViewController.

#Installation

Just:

pod 'ABStaticTableViewController'

or include this files into your project:

  • ABStaticTableViewController.h
  • ABStaticTableViewController.m

#Using

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;

#License

ABStaticTableViewController is released under the MIT License.