{"id":18693842,"url":"https://github.com/mengxianliang/xlrefresh","last_synced_at":"2025-07-02T21:06:35.579Z","repository":{"id":113372461,"uuid":"86297464","full_name":"mengxianliang/XLRefresh","owner":"mengxianliang","description":"iOS 下拉刷新工具","archived":false,"fork":false,"pushed_at":"2019-05-30T01:56:50.000Z","size":2224,"stargazers_count":25,"open_issues_count":2,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T06:54:05.471Z","etag":null,"topics":["refresh","uicollectionview","uiscrollview","uitableview","uiwebview"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mengxianliang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-03-27T06:08:48.000Z","updated_at":"2020-09-05T03:05:38.000Z","dependencies_parsed_at":"2023-06-15T11:30:26.838Z","dependency_job_id":null,"html_url":"https://github.com/mengxianliang/XLRefresh","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mengxianliang/XLRefresh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengxianliang%2FXLRefresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengxianliang%2FXLRefresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengxianliang%2FXLRefresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengxianliang%2FXLRefresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mengxianliang","download_url":"https://codeload.github.com/mengxianliang/XLRefresh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengxianliang%2FXLRefresh/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263215286,"owners_count":23431894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["refresh","uicollectionview","uiscrollview","uitableview","uiwebview"],"created_at":"2024-11-07T11:07:19.351Z","updated_at":"2025-07-02T21:06:35.555Z","avatar_url":"https://github.com/mengxianliang.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XLRefresh\n\n### 功能说明\n- [x] 下拉刷新、上拉加载\n- [x] 手动刷新、加载\n- [x] 支持UITableView、UICollectionView、UIWebView、UIScrollView\n- [x] 支持Block方式和代理方式的回调方法\n\n### 显示效果\n\n| UITableView | UICollectionView | UIWebView |\n| ---- | ---- | ---- |\n|![image](https://github.com/mengxianliang/XLRefresh/blob/master/GIF/1.gif)| ![image](https://github.com/mengxianliang/XLRefresh/blob/master/GIF/2.gif)| ![image](https://github.com/mengxianliang/XLRefresh/blob/master/GIF/3.gif)|\n\n### 使用方法\n\n**代理方式创建：**\n\n```objc\n_tableView.xl_header = [XLRefreshHeader headerWithRefreshingTarget:self refreshingAction:@selector(refreshMethod)];\n\n_tableView.xl_footer = [XLRefreshFooter footerWithRefreshingTarget:self refreshingAction:@selector(loadMoreMethod)];\n```\n**block方式创建：**\n\n```objc\n_tableView.xl_header = [XLRefreshHeader headerWithRefreshingBlock:^{\n        \n}];\n\n_tableView.xl_footer = [XLRefreshFooter footerWithRefreshingBlock:^{\n        \n}];\n```\n\n**手动刷新：**\n\n```objc\n[_tableView.xl_header startRefreshing];\n\n[_tableView.xl_footer startRefreshing];\n```\n\n**结束刷新：**\n\n```objc\n[_tableView.xl_header endRefreshing];\n\n[_tableView.xl_footer endRefreshing];\n```\n\n### 个人开发过的UI工具集合 [XLUIKit](https://github.com/mengxianliang/XLUIKit)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmengxianliang%2Fxlrefresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmengxianliang%2Fxlrefresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmengxianliang%2Fxlrefresh/lists"}