Latest 1.0.0
Homepage https://github.com/demoncraz/CCRefreshHeader
License MIT
Platforms ios 10.0
Authors

A easy-to-use loading header, see gif for the demo:

CCRefreshHeader

How to use:

  1. Simply use the CCRefreshHeader class by adding a cc_header for your scrollView:
    self.tableView.cc_header = [CCRereshHeader headerWithRefreshingTarget:self refreshingAction:@selector(getData)];

    or

    self.tableView.cc_header = [CCRereshHeader headerWithRefreshingBlock:^{
    [weakSelf getData];
    }];

call -(void)endRefreshing after data is loaded for example:

[self.tableView.cc_header endRefreshing];
  1. You can use the CCLoadingIndicator directly if you don’t need the default behaviour of capturing master ScrollView’s content offset change. Simply change the "progress" value:
    CCLoadingIndicator *indicatorView = [CCLoadingIndicator alloc] init];
    indicatorView.progress = 0.5;

    And it automatically starts animating according to the "automaticallyLoading" property configuration when progress >= 1.0.

Latest podspec

{
    "name": "CCRefreshHeader",
    "version": "1.0.0",
    "homepage": "https://github.com/demoncraz/CCRefreshHeader",
    "license": "MIT",
    "summary": "An easy-to-use refreshing header for UIScrollView",
    "authors": {
        "chenc": "[email protected]"
    },
    "source": {
        "git": "https://github.com/demoncraz/CCRefreshHeader.git",
        "tag": "1.0.0"
    },
    "source_files": "CCRefreshHeader/**/*",
    "platforms": {
        "ios": "10.0"
    }
}

Pin It on Pinterest

Share This