Declared in UITableView+BFKit.h

Overview

This category adds some useful methods to UITableView

Tasks

Class Methods

initWithFrame:style:cellSeparatorStyle:separatorInset:dataSource:delegate:

+ (instancetype _Nonnull)initWithFrame:(CGRect)frame style:(UITableViewStyle)style cellSeparatorStyle:(UITableViewCellSeparatorStyle)cellSeparatorStyle separatorInset:(UIEdgeInsets)separatorInset dataSource:(id<UITableViewDataSource> _Nullable)dataSource delegate:(id<UITableViewDelegate> _Nullable)delegate
Discussion

Create an UITableView and set some parameters

Parameters

frame

TableView’s frame

style

TableView’s style

cellSeparatorStyle

Cell separator style

separatorInset

Cell separator inset

dataSource

TableView’s data source

delegate

TableView’s delegate

Return Value

Returns the created UITableView

Declared In

UITableView+BFKit.h

Instance Methods

getIndexPathsForSection:

- (NSArray *_Nonnull)getIndexPathsForSection:(NSUInteger)section
Discussion

Retrive all the IndexPaths for the section

Parameters

section

The section

Return Value

Return an array with all the IndexPaths

Declared In

UITableView+BFKit.h

getNextIndexPath:forSection:

- (NSIndexPath *_Nonnull)getNextIndexPath:(NSUInteger)row forSection:(NSUInteger)section
Discussion

Retrive the next index path for the given row at section

Parameters

row

Row of the index path

section

Section of the index path

Return Value

Returns the next index path

Declared In

UITableView+BFKit.h

getPreviousIndexPath:forSection:

- (NSIndexPath *_Nonnull)getPreviousIndexPath:(NSUInteger)row forSection:(NSUInteger)section
Discussion

Retrive the previous index path for the given row at section

Parameters

row

Row of the index path

section

Section of the index path

Return Value

Returns the previous index path

Declared In

UITableView+BFKit.h