Skip to content

evnaz/ENFooterActivityIndicatorView

Repository files navigation

ENFooterActivityIndicatorView

UITableView's footer activity indicator

##Demo

##What does it do

  • Add an activity indicator view for an UITableView
  • Handle when it scrolls to the bottom

##How to use

Import UITableViewController's category to your table view controller:

#import "UITableViewController+ENFooterActivityIndicatorView.h"

Set block for handle when table view goes to the bottom in viewDidLoad:

[self setTableScrolledDownBlock:^void() {
        //Put here data loading logic
}];

Use next methods to add or remove footer activity indicator view:

if (![self footerActivityIndicatorView])
        [self addFooterActivityIndicatorWithHeight:80.f];//Add ENFooterActivityIndicatorView to tableView's footer
[self removeFooterActivityIndicator]; // Removes tableView's footer view

See example project for more explanation.

About

UITableView's footer activity indicator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published