{"id":21272696,"url":"https://github.com/fcxpods/fcxrefresh","last_synced_at":"2025-03-15T12:25:34.592Z","repository":{"id":56910321,"uuid":"95830143","full_name":"FCXPods/FCXRefresh","owner":"FCXPods","description":"Pull to refresh control.","archived":false,"fork":false,"pushed_at":"2022-01-13T08:08:10.000Z","size":1649,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T16:06:53.627Z","etag":null,"topics":["carthage","cocoapods","objective-c","pull-refresh","pull-to-refresh","pullrefresh","refresh","refreshcontrol","refreshview"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FCXPods.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-30T00:00:51.000Z","updated_at":"2022-01-13T08:08:13.000Z","dependencies_parsed_at":"2022-08-20T19:40:06.287Z","dependency_job_id":null,"html_url":"https://github.com/FCXPods/FCXRefresh","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FCXPods%2FFCXRefresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FCXPods%2FFCXRefresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FCXPods%2FFCXRefresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FCXPods%2FFCXRefresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FCXPods","download_url":"https://codeload.github.com/FCXPods/FCXRefresh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243728341,"owners_count":20338238,"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":["carthage","cocoapods","objective-c","pull-refresh","pull-to-refresh","pullrefresh","refresh","refreshcontrol","refreshview"],"created_at":"2024-11-21T09:08:40.547Z","updated_at":"2025-03-15T12:25:34.566Z","avatar_url":"https://github.com/FCXPods.png","language":"Objective-C","readme":"# FCXRefresh\n\n[![CocoaPods compatible](https://img.shields.io/cocoapods/v/FCXRefresh.svg)](http://cocoadocs.org/docsets/FCXRefresh/)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Platform](http://img.shields.io/cocoapods/p/FCXRefresh.svg?style=flat)](https://github.com/FCXPods/FCXRefresh)\n\n[FCXRefresh](https://github.com/FCXPods/FCXRefresh)是一个使用OC编写、用于上下拉刷新的控件。\n\n## 特性\n\n- [x] 普通上下拉刷新\n- [x] 自动下拉刷新\n- [x] 上拉无更多数据控制\n- [x] 上下拉百分比显示\n- [x] 自定义上下拉动画\n- [x] 上拉底部间距控制\n\n\n## 环境\n\n- Xcode 11+\n- iOS 8.0+\n\n## 如何导入\n\n### CocoaPods\n\n```ruby\npod 'FCXRefresh'\n```\n\n### Carthage\n\n```ogdl\ngithub \"FCXPods/FCXRefresh\"\n```\n\n### 手动导入\n\n把FCXRefresh文件夹导入即可\n\n## 如何使用\n\n### 包含头文件\n\n```objc\n#import \"UIScrollView+FCXRefresh.h\"\n```\n\n### 添加上下拉刷新\n\n```objc\n//下拉刷新\n_refreshHeaderView = [self.tableView addHeaderWithRefreshHandler:^(FCXRefreshBaseView *refreshView) {\n    [weakSelf refreshAction];\n}];\n\n//上拉加载更多\n_refreshFooterView = [self.tableView addFooterWithRefreshHandler:^(FCXRefreshBaseView *refreshView) {\n    [weakSelf loadMoreAction];\n}];\n```\n\n### 刷新自定义设置\n\n```objc\n//自动下拉刷新\n[_refreshHeaderView autoRefresh];\n\n//自动上拉加载更多\n_refreshFooterView.autoLoadMore = YES;\n\n//上拉底部间距设置\n_refreshFooterView.loadMoreBottomExtraSpace = 30;\n```\n\n### 上下拉百分比显示\n\n```objc\n_refreshHeaderView.pullingPercentHandler = ^(CGFloat pullingPercent) {\n    headerPercentLabel.text = [NSString stringWithFormat:@\"%.2f%%\", pullingPercent * 100];\n};\n\n_refreshFooterView.pullingPercentHandler = ^(CGFloat pullingPercent) {\n    footerPercentLabel.text = [NSString stringWithFormat:@\"%.2f%%\", pullingPercent * 100];\n};\n```\n\n## 显示效果：\n\n![FCXRefresh.gif](https://raw.githubusercontent.com/FCXPods/FCXRefresh/master/FCXRefresh.gif)\n\n## License\n\nFCXRefresh is released under the MIT license. See [LICENSE](https://github.com/FCXPods/FCXRefresh/blob/master/LICENSE) for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcxpods%2Ffcxrefresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffcxpods%2Ffcxrefresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcxpods%2Ffcxrefresh/lists"}