ccb

CCBottomRefreshControl

This category implements an additional property for UIScrollView class, that allows to add UIRefreshControl that aligned to bottom.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

311

Maintenance

Last Commit

4yrs ago

Contributors

7

Package

Dependencies

0

License

MIT

Categories

Readme

CCBottomRefreshControl

Category for UIScrollView class, that adds bottomRefreshControl property, that could be assigned to UIRefreshControl class instance. It implements an ability to add native iOS bottom pull-up to refresh control to UITableView or UICollectionView. Perfectly works with top top refresh control (see example project). Very useful for refreshing table and collection views that contain most recent items at the bottom. For example in chats.

Installation

CocoaPods is the recommended way to add CCBottomRefreshControl to your project.

Here's an example podfile that installs CCBottomRefreshControl.

Podfile

platform :ios, '7.0'

pod 'CCBottomRefreshControl'

Usage

Create an ordinary UIRefreshControl class instance, and assign additional UITableView/UICollectionView property bottomRefreshControl to it.

Additional triggerVerticalOffset property in UIRefreshControl class allows you to specify a vertical offset, after reaching which refresh will be triggered. Default value is 120.

#import <CCBottomRefreshControl/UIScrollView+BottomRefreshControl.h>

...

UIRefreshControl *refreshControl = [UIRefreshControl new];
refreshControl.triggerVerticalOffset = 100.;
[refreshControl addTarget:self action:@selector(refresh) forControlEvents:UIControlEventValueChanged];
self.tableView.bottomRefreshControl = refreshControl;

- (void)refresh {
    // Do refresh stuff here
}

License

CCBottomRefreshControl is released under the MIT license. See LICENSE

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial