Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

vstrecher/CCBottomRefreshControl

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CCBottomRefreshControl

Category for UIScrollView class, that adds bottomRefreshControl property, that could be assigned to UIRefreshControl class instance. It implements an ability to add iOS 6/7 native 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, '6.0'

pod 'CCBottomRefreshControl'

##Usage

#import <CCBottomRefreshControl/UIScrollView+BottomRefreshControl.h>

...

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

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

##License

CCBottomRefreshControl is released under the MIT license. See LICENSE

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.