Latest 1.1.1
Homepage https://github.com/k06a/ABStaticTableViewController
License MIT
Platforms ios 6.0, requires ARC
Authors

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.

Latest podspec

{
    "name": "ABStaticTableViewController",
    "version": "1.1.1",
    "summary": "Dynamically hide rows and sections in static UITableView inside UITableViewController.",
    "homepage": "https://github.com/k06a/ABStaticTableViewController",
    "license": "MIT",
    "authors": {
        "Anton Bukov": "[email protected]"
    },
    "source": {
        "git": "https://github.com/k06a/ABStaticTableViewController.git",
        "tag": "1.1.1"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source_files": "*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This