BBATableViewController+StaticCells.h
1.73 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
//
// BBASettingsTableViewController.h
// BBAPods
//
// Created by Xiong Feng on 16/1/20.
// Copyright © 2016年 Baidu. All rights reserved.
//
#import "BBATableViewController.h"
#import "BBATableViewStaticSwitchCell.h"
@interface BBATableViewController (StaticCells)
- (UITableViewCell *)selectableCellWithTitle:(NSString *)title
actionBlock:(void(^)(void))actionBlock;
- (UITableViewCell *)selectableCellWithTitle:(NSString *)title
actionSheetTitle:(NSString *)actionSheetTitle
destructiveButtonTitle:(NSString *)destructiveButtonTitle
didShowActionSheet:(void(^)(void))didShowActionSheet
actionBlock:(void(^)(void))actionBlock;
- (UITableViewCell *)disclosureCellWithTitle:(NSString *)title
actionBlock:(void(^)(void))actionBlock;
- (UITableViewCell *)switchCellWithTitle:(NSString *)title
switchStatus:(BBATableViewStaticCellSwitchStatus)switchStatus
storeSwitchOnBlock:(BBAStoreSwitchOnBlockType)storeSwitchOnBlock
fetchSwitchOnBlock:(BBAFetchSwitchOnBlockType)fetchSwitchOnBlock;
- (UIView *)sectionFooterWithText:(NSString *)text;
- (UIView *)tableButtonFooterWithTitle:(NSString *)title
actionBlock:(void(^)(void))actionBlock;
- (UIView *)tableButtonFooterWithTitle:(NSString *)title
actionSheetTitle:(NSString *)actionSheetTitle
destructiveButtonTitle:(NSString *)destructiveButtonTitle
didShowActionSheet:(void(^)(void))didShowActionSheet
actionBlock:(void(^)(void))actionBlock;
@end