{"id":22740096,"url":"https://github.com/iliuchang/lcpullrefresh","last_synced_at":"2025-04-14T05:52:21.619Z","repository":{"id":49785781,"uuid":"496065888","full_name":"iLiuChang/LCPullRefresh","owner":"iLiuChang","description":"Give pull-to-refresh to any UIScrollView.","archived":false,"fork":false,"pushed_at":"2022-05-30T10:32:16.000Z","size":16,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-14T05:52:20.105Z","etag":null,"topics":["ios","objective-c","pull-to-refresh","uicollectionview","uiscrollview","uitableview"],"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/iLiuChang.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":"2022-05-25T03:13:47.000Z","updated_at":"2024-01-23T06:53:53.000Z","dependencies_parsed_at":"2022-09-03T00:11:55.315Z","dependency_job_id":null,"html_url":"https://github.com/iLiuChang/LCPullRefresh","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLiuChang%2FLCPullRefresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLiuChang%2FLCPullRefresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLiuChang%2FLCPullRefresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLiuChang%2FLCPullRefresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iLiuChang","download_url":"https://codeload.github.com/iLiuChang/LCPullRefresh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248830389,"owners_count":21168272,"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":["ios","objective-c","pull-to-refresh","uicollectionview","uiscrollview","uitableview"],"created_at":"2024-12-10T23:07:26.617Z","updated_at":"2025-04-14T05:52:21.588Z","avatar_url":"https://github.com/iLiuChang.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# LCPullRefresh\n\nUse UIActivityIndicatorView to provide a pull-to-refresh function for UIScrollView.\n\n## Requirements\n\n- **iOS 8.0+**\n- **Xcode 11.0+**\n\n## Usage\n\n### Pull-up refresh\n\nAdd pull-up trigger event\n\n```objective-c\n[tableView lc_addHeaderRefreshingWithActionHandler:^{\n\n}];\n```\n\nManual refresh\n\n```objective-c\n[tableView lc_beginHeaderRefreshing];\n```\n\n### Drop down loading\n\nAdd dropdown trigger event\n\n```objective-c\n[tableView lc_addFooterRefreshingWithActionHandler:^{\n  \n}];\n```\n\nAdd dropdown trigger event\n\n```objective-c\n[tableView lc_beginFooterRefreshing];\n```\n\n### End refresh\n\nBecause only one UIActivityIndicatorView is created, `lc_endRefreshing` will end all refreshes.\n\n```objective-c\n[self.tableView lc_endRefreshing];\n```\n\n### Set refresh direction\n\nYou can set horizontal or vertical refresh.\n\n```objective-c\ntableView.lc_refreshScrollDirection = LCRefreshScrollDirectionHorizontal;\n```\n\n## Installation\n\n### CocoaPods\n\nTo integrate LCPullRefresh into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\npod 'LCPullRefresh'\n```\n\n### Manual\n\n1. Download everything in the LCPullRefresh folder;\n2. Add (drag and drop) the source files in LCPullRefresh to your project;\n3. Import `UIScrollView+LCPullRefresh.h`.\n\n## License\n\nLCPullRefresh is provided under the MIT license. See LICENSE file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filiuchang%2Flcpullrefresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filiuchang%2Flcpullrefresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filiuchang%2Flcpullrefresh/lists"}