Latest 1.0.5
Homepage https://github.com/dengyafeng001/pullRefresh
License MIT
Platforms ios 7.0, requires ARC
Authors

功能介绍

扩展UITableView使其具体下拉刷新和上拉获取更多的功能,属性在程序运行过程中可根据情况动态改变

支持Cocoapods

pod ‘pullRefresh’, ‘~> 1.0.4’

如何使用

//1.在开启下拉或者上拉前调用
[self.tableView setup];

//2.开启下拉或者上拉
[self.tableView setPullDownEnable:YES];
[self.tableView setLoadMoreEnable:YES];

//3.设置回调函数
__weak typeof(self)weakSelf = self;
[self.tableView setLoadingBlock:^(BOOL pullDown) {
    //请求数据  
    [weakSelf requestData:!pullDown];
}];
//4.在请求结束后结束动画
[self.tableView reloadData];

Latest podspec

{
    "name": "pullRefresh",
    "version": "1.0.5",
    "summary": "u6269u5c55UITableViewu4f7fu5176u5177u4f53u4e0bu62c9u5237u65b0u548cu4e0au62c9u83b7u53d6u66f4u591au7684u529fu80fd",
    "description": "u6269u5c55UITableViewu4f7fu5176u5177u4f53u4e0bu62c9u5237u65b0u548cu4e0au62c9u83b7u53d6u66f4u591au7684u529fu80fd,u4ec5u9700u51e0u884cu4ee3u7801u5c31u80fdu5b9eu73b0TableViewu7684u4e0bu62c9u5237u65b0u548cu4e0au62c9u83b7u53d6u66f4u591a",
    "homepage": "https://github.com/dengyafeng001/pullRefresh",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "dengyafeng001 group": "https://github.com/dengyafeng001"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/dengyafeng001/pullRefresh.git",
        "tag": "1.0.5"
    },
    "source_files": "RefreshControl/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This