-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLRTableViewController.h
More file actions
48 lines (40 loc) · 1.49 KB
/
LRTableViewController.h
File metadata and controls
48 lines (40 loc) · 1.49 KB
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
41
42
43
44
45
46
47
48
//
// LRTableViewController.m
//
// Created by Denis Smirnov on 12-05-28.
// Copyright (c) 2012 Leetr.com. All rights reserved.
//
#include <UIKit/UIKit.h>
#import "LRTableViewSection.h"
#import "LRTableViewPart.h"
@interface LRTableViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, LRTableViewSectionDelegate>
{
UILabel *refreshLabel;
UIImageView *refreshArrow;
UIActivityIndicatorView *refreshSpinner;
BOOL isDragging;
BOOL isLoading;
}
@property (nonatomic, copy) NSString *refreshHeaderTextPull;
@property (nonatomic, copy) NSString *refreshHeaderTextRelease;
@property (nonatomic, copy) NSString *refreshHeaderTextLoading;
@property (nonatomic, copy) NSString *refreshHeaderImageName;
@property (nonatomic) BOOL isPullToRefresh;
@property (nonatomic) BOOL clearsSelectionOnViewWillAppear;
@property (nonatomic, strong) IBOutlet UITableView *tableView;
- (void)addSection:(LRTableViewSection *)section;
- (void)removeSection:(LRTableViewSection *)section;
- (void)removeSection:(LRTableViewSection *)section withAnimation:(UITableViewRowAnimation)animation;
- (void)removeAllSections;
- (BOOL)containsSection:(LRTableViewSection *)section;
- (void)startLoading;
- (void)stopLoading;
- (void)refresh;
- (void)showLoadingHeader;
//override these methods for custom pull view
- (UIView *)viewForRefreshHeaderView;
- (void)updateRefreshHeaderForPull;
- (void)updateRefreshHeaderForRelease;
- (void)updateRefreshHeaderForLoading;
- (void)resetRefreshHeader;
@end