Skip to content

carabina/ENFooterActivityIndicatorView

 
 

Repository files navigation

ENFooterActivityIndicatorView

UITableView's footer activity indicator

##Demo

##What it does

  • Add an activity indicator view to your table view
  • 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

Languages

  • Objective-C 100.0%