{"id":18974708,"url":"https://github.com/pujiaxin33/jxpagelistview","last_synced_at":"2025-04-06T14:11:40.321Z","repository":{"id":45522450,"uuid":"149074902","full_name":"pujiaxin33/JXPageListView","owner":"pujiaxin33","description":"高仿闲鱼、转转、京东、中央天气预报等主流APP列表底部分页滚动视图","archived":false,"fork":false,"pushed_at":"2019-09-04T12:46:51.000Z","size":3303,"stargazers_count":436,"open_issues_count":0,"forks_count":61,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-30T13:08:22.773Z","etag":null,"topics":["list","page","pager","pageview","paging","scroll","scrollview","segment"],"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/pujiaxin33.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":"2018-09-17T05:48:07.000Z","updated_at":"2025-03-26T06:18:37.000Z","dependencies_parsed_at":"2022-07-19T14:38:57.032Z","dependency_job_id":null,"html_url":"https://github.com/pujiaxin33/JXPageListView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pujiaxin33%2FJXPageListView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pujiaxin33%2FJXPageListView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pujiaxin33%2FJXPageListView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pujiaxin33%2FJXPageListView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pujiaxin33","download_url":"https://codeload.github.com/pujiaxin33/JXPageListView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247492557,"owners_count":20947545,"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":["list","page","pager","pageview","paging","scroll","scrollview","segment"],"created_at":"2024-11-08T15:15:56.203Z","updated_at":"2025-04-06T14:11:40.296Z","avatar_url":"https://github.com/pujiaxin33.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JXPageListView\n高仿闲鱼、转转、京东、中央天气预报等主流APP列表底部分页滚动视图\n\n# 特性\n\n- 上下左右滚动交互流畅；\n- 支持MJRefresh等header加载；\n- 支持HUD loading加载；\n- 支持底部分类滚动列表状态保存；\n- 支持底部分类滚动列表状态不保存；\n\n# 效果预览\n\n| 说明 | GIF|\n|------|------|\n| 上下左右交互 | ![](https://github.com/pujiaxin33/JXPageListView/blob/master/JXPageListView/Gif/scrollInteraction.gif)|\n| MJRefresh刷新加载 | ![](https://github.com/pujiaxin33/JXPageListView/blob/master/JXPageListView/Gif/headerLoading.gif) |\n| HUD loading加载 | ![](https://github.com/pujiaxin33/JXPageListView/blob/master/JXPageListView/Gif/hudLoading.gif)\n| 保存底部列表滚动状态 | ![](https://github.com/pujiaxin33/JXPageListView/blob/master/JXPageListView/Gif/listScrollStateSave.gif) |\n| 不保存底部列表滚动状态 | ![](https://github.com/pujiaxin33/JXPageListView/blob/master/JXPageListView/Gif/listScrollStateNoSave.gif) |\n| **JXPagingView** \u003cbr/\u003e如果只需要HeaderView \u003cbr/\u003e请点击查看该库[JXPagingView](https://github.com/pujiaxin33/JXPagingView) \u003cbr/\u003e请点击查看该库[JXPagingView](https://github.com/pujiaxin33/JXPagingView) \u003cbr/\u003e请点击查看该库[JXPagingView](https://github.com/pujiaxin33/JXPagingView) | ![Zoom](https://github.com/pujiaxin33/JXPagingView/blob/master/JXPagingView/Gif/Zoom.gif) | \n\n# 使用\n\n- 初始化`pageListView`\n\n```Objective-C\nself.pageListView = [[JXPageListView alloc] initWithDelegate:self];\n```\n\n- 配置分类视图`pinCategoryView`\n\n```Objective-C\nself.pageListView.pinCategoryView.titles = self.titles;\n```\n\n- 成为mainTableView的代理，像使用普通UITableView一样使用它；\n```Objective-C\nself.pageListView.mainTableView.dataSource = self;\nself.pageListView.mainTableView.delegate = self;\n```\n\n- `UITableViewDataSource, UITableViewDelegate`代理方法实现\n\n```Objective-C\n- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {\n    return 1 + “你的顶部内容section数量”;//底部的分类滚动视图需要作为最后一个section\n}\n\n- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {\n    if (section == 2) {\n        //Tips:最后一个section（即listContainerCell所在的section）需要返回1\n        return 1;\n    }\n    //返回你的顶部内容 row number\n}\n\n- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {\n    if (indexPath.section == 2) {\n        //Tips:最后一个section（即listContainerCell所在的section）返回listContainerCell的高度\n        return [self.pageListView listContainerCellHeight];\n    }\n     //返回你的顶部内容 cell height\n}\n\n- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {\n    if (indexPath.section == 2) {\n        //Tips:最后一个section（即listContainerCell所在的section）配置listContainerCell\n        return [self.pageListView listContainerCellForRowAtIndexPath:indexPath];\n    }\n   //返回你的顶部内容 cell\n}\n\n- (void)scrollViewDidScroll:(UIScrollView *)scrollView {\n    //Tips:需要传入mainTableView的scrollViewDidScroll事件\n    [self.pageListView mainTableViewDidScroll:scrollView];\n}\n```\n\n- `JXPageViewDelegate`代理方法实现\n```Objective-C\n//返回底部的列表视图\n- (NSArray\u003cUIView\u003cJXPageListViewListDelegate\u003e *\u003e *)listViewsInPageListView:(JXPageListView *)pageListView {\n    return self.listViewArray;\n}\n```\n\n# JXPagingView推荐\n如果你只想找一个顶部只有少量视图（类似TableHeaderView的概念），推荐你看我的这个库：[JXPagingView](https://github.com/pujiaxin33/JXPagingView)\n\n# JXCategoryView推荐\n如果你想要支持所有主流APP分类切换效果的框架，推荐你看我的这个库，目前已经1.4k stars：[JXCategoryView](https://github.com/pujiaxin33/JXCategoryView)\n\n# 补充\n有任何疑问欢迎通过以下方式联系我：\n- 提issue；\n- 邮箱：317437087@qq.com\n- QQ：317437087\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpujiaxin33%2Fjxpagelistview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpujiaxin33%2Fjxpagelistview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpujiaxin33%2Fjxpagelistview/lists"}