forked from rdj/StaticDataTableViewController
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStaticDataTableViewController.h
executable file
·40 lines (24 loc) · 1.01 KB
/
StaticDataTableViewController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// StaticTableViewController.h
// StaticTableViewController 2.0
//
// Created by Peter Paulis on 31.1.2013.
// Copyright (c) 2013 Peter Paulis. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface StaticDataTableViewController : UITableViewController
@property (nonatomic, assign) BOOL hideSectionsWithHiddenRows;
@property (nonatomic, assign) UITableViewRowAnimation insertTableViewRowAnimation;
@property (nonatomic, assign) UITableViewRowAnimation deleteTableViewRowAnimation;
@property (nonatomic, assign) UITableViewRowAnimation reloadTableViewRowAnimation;
- (BOOL)cellIsHidden:(UITableViewCell *)cell;
- (void)updateCell:(UITableViewCell *)cell;
- (void)updateCells:(NSArray *)cells;
- (void)cell:(UITableViewCell *)cell setHidden:(BOOL)hidden;
- (void)cells:(NSArray *)cells setHidden:(BOOL)hidden;
// never call [self.tableView reloadData] directly
// doing so will lead to data inconsistenci
// always use this method for reload
- (void)reloadDataAnimated:(BOOL)animated;
- (void)applyUpdates;
@end