BBATableViewController+StaticCells.h 1.73 KB
//
//  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