Latest 0.1.0
Homepage https://github.com/cs0811/SRefresh
License MIT
Platforms ios 7.0
Dependencies Masonry
Authors

以Category的方法实现,模仿淘宝刷新,上拉滚到到一定位置开始自动加载更多。

pod "SRefresh" , "~>0.1.0"

  • 注册刷新

    [_tableview addRefreshBlock:^(PanState state) {
            if (state == Pull) {
              NSLog(@"下拉");
            }else if (state == Push) {
              NSLog(@"上拉");
            }
    }];
  • 停止刷新

    [_tableview stopRefresh];
  • 移除刷新

    - (void)dealloc {
            [_tableview removeRrefresh];
    }

image

Latest podspec

{
    "name": "SRefresh",
    "version": "0.1.0",
    "summary": "this a refreshController.",
    "description": "*tu6a21u4effu6dd8u5b9du5237u65b0uff0cu6edau52a8u5230u5c40u91ccu5e95u90e8u4e00u5b9au8dddu79bbu540euff0cu81eau52a8u52a0u8f7du66f4u591a",
    "homepage": "https://github.com/cs0811/SRefresh",
    "license": "MIT",
    "authors": {
        "cs0811": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/cs0811/SRefresh.git",
        "tag": "0.1.0"
    },
    "source_files": "Classes/*.{h,m}",
    "dependencies": {
        "Masonry": [
            "~> 0.6.3"
        ]
    }
}

Pin It on Pinterest

Share This