{"id":32315216,"url":"https://github.com/storm52/lwxdetailcontroller","last_synced_at":"2025-10-23T10:44:15.795Z","repository":{"id":56919319,"uuid":"126460719","full_name":"storm52/LWXDetailController","owner":"storm52","description":"UIScrollVIew里嵌套多个子控制器联动上下滑动。tabbar调节参考https://github.com/yuping1989/YPTabBarController","archived":false,"fork":false,"pushed_at":"2018-04-04T01:38:04.000Z","size":4157,"stargazers_count":32,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-23T10:43:45.044Z","etag":null,"topics":["childcontroller","page","pageview","reactivecocoa","tabbar","tesla","uiscrollview"],"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/storm52.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-03-23T09:12:28.000Z","updated_at":"2023-03-07T09:55:29.000Z","dependencies_parsed_at":"2022-08-20T21:50:15.819Z","dependency_job_id":null,"html_url":"https://github.com/storm52/LWXDetailController","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/storm52/LWXDetailController","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storm52%2FLWXDetailController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storm52%2FLWXDetailController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storm52%2FLWXDetailController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storm52%2FLWXDetailController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/storm52","download_url":"https://codeload.github.com/storm52/LWXDetailController/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storm52%2FLWXDetailController/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280606604,"owners_count":26359387,"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","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["childcontroller","page","pageview","reactivecocoa","tabbar","tesla","uiscrollview"],"created_at":"2025-10-23T10:44:14.264Z","updated_at":"2025-10-23T10:44:15.784Z","avatar_url":"https://github.com/storm52.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LWXDetailController\n\n[![CI Status](http://img.shields.io/travis/storm52/LWXDetailController.svg?style=flat)](https://travis-ci.org/storm52/LWXDetailController)\n[![Version](https://img.shields.io/cocoapods/v/LWXDetailController.svg?style=flat)](http://cocoapods.org/pods/LWXDetailController)\n[![License](https://img.shields.io/cocoapods/l/LWXDetailController.svg?style=flat)](http://cocoapods.org/pods/LWXDetailController)\n[![Platform](https://img.shields.io/cocoapods/p/LWXDetailController.svg?style=flat)](http://cocoapods.org/pods/LWXDetailController)\n\n![image](https://github.com/storm52/LWXDetailController/blob/master/demo.gif)\n\n## 使用\n\n继承LWXDetailController，重写headerView，指定子控制器数组，Done~\n\n内容控制器可滑动，实现PageScrollDelegate，返回滑动的视图\n```\n- (UIScrollView *)scrollView{\n    return self.tableView;\n}\n```\n指定头部视图\n```\n- (UIView *)headerView {\n    UIView *header = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 100)];\n    header.backgroundColor = UIColor.redColor;\n    return header;\n}\n\n- (CustomHeaderView *)headerView{\n    if (!_titleHeaderView) {\n        _titleHeaderView = CustomHeaderView.new;\n        _titleHeaderView.titleLabel.text = @\"-----\";\n        _titleHeaderView.subTitleLabel.text = @\"----\";\n    }\n    return _titleHeaderView;\n}\n\n\n```\n## 实现\n\n用ReactiveObjC实现，监听切换事件，并对新的UIScrollView 的offset进行监听，与本身scrollview的offset协调。如果子控制器不是可滑动的，则切换到监听本身的offset即可\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n\n## Installation\n\nLWXDetailController is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'LWXDetailController'\n```\n\n## Author\n\nstorm52, storm52@qq.com\n\n## License\n\nLWXDetailController is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstorm52%2Flwxdetailcontroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstorm52%2Flwxdetailcontroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstorm52%2Flwxdetailcontroller/lists"}