{"id":13696511,"url":"https://github.com/yongyuandouneng/YNPageViewController","last_synced_at":"2025-05-03T17:31:25.857Z","repository":{"id":51151428,"uuid":"138715524","full_name":"yongyuandouneng/YNPageViewController","owner":"yongyuandouneng","description":"特斯拉组件、QQ联系人布局、多页面嵌套滚动、悬停效果、美团、淘宝、京东、微博、腾讯新闻、网易新闻、今日头条等标题滚动视图","archived":false,"fork":false,"pushed_at":"2021-05-21T05:42:33.000Z","size":594,"stargazers_count":1131,"open_issues_count":27,"forks_count":221,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-09T07:03:55.532Z","etag":null,"topics":["ios","ios-app","objective-c","pages","pageview","pageviewcontroller","scrollview"],"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/yongyuandouneng.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-06-26T09:28:04.000Z","updated_at":"2025-02-13T03:50:16.000Z","dependencies_parsed_at":"2022-08-27T23:20:12.334Z","dependency_job_id":null,"html_url":"https://github.com/yongyuandouneng/YNPageViewController","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yongyuandouneng%2FYNPageViewController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yongyuandouneng%2FYNPageViewController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yongyuandouneng%2FYNPageViewController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yongyuandouneng%2FYNPageViewController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yongyuandouneng","download_url":"https://codeload.github.com/yongyuandouneng/YNPageViewController/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252226729,"owners_count":21714859,"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","ios-app","objective-c","pages","pageview","pageviewcontroller","scrollview"],"created_at":"2024-08-02T18:00:41.660Z","updated_at":"2025-05-03T17:31:23.543Z","avatar_url":"https://github.com/yongyuandouneng.png","language":"Objective-C","funding_links":[],"categories":["UI Components","Objective-C","iOS"],"sub_categories":["PageView"],"readme":"![image](http://paxdlrdk7.bkt.clouddn.com/name3.png)\n\n\n![](https://img.shields.io/badge/platform-iOS-red.svg) ![](https://img.shields.io/badge/language-Objective--C-orange.svg) ![](https://img.shields.io/cocoapods/v/YNPageViewController.svg?style=flat)\n![](https://img.shields.io/badge/license-MIT%20License-brightgreen.svg)\n\n\n## 集合了多种样式的嵌套页面布局(滑动库):\n```本库是对```[YNPageScrollViewController](https://github.com/yongyuandouneng/YNPageScrollViewController) ```进行重构，优化代码，重写实现原理。其优点如下：```\n\n|         | 优点  |\n----------|-----------------\n✅  | 易于集成，多种样式以供选择，特斯拉(悬浮)布局等\n✅  | 控制器生命周期完好无损、懒加载控制器\n✅  | 高性能:  用双缓存机制让界面只存在一个控制器\n✅  | 支持UISollView、UITableView、UICollectionView、\n✅    |  支持列表拓展tableFooterView、tableHeaderView、\n✅  | 支持CollectionView的瀑布流、FlowLayout修改的布局\n✅  | 支持头部拉伸放大特效、还有其他部分拓展的API\n\n\n## Demo效果图\n\n![image](http://paxdlrdk7.bkt.clouddn.com/YNPageViewControllerGif.gif)\n\n\n## Requirements 要求\n* iOS 8+\n* Xcode 8+\n\n## Installation 安装\n#### 1.手动安装:\n- `下载DEMO后,将子文件夹Libs/YNPageViewController拖入到项目中, 导入头文件YNPageViewController.h开始使用.`\n\n#### 2.CocoaPods安装:\n\n- `一、可以直接在项目Podfile 文件中 pod 'YNPageViewController'`\n\n- `二、先pod search YNPageViewController 搜索一下`\n- `如果发现pod search YNPageViewController 不是最新版本，在终端执行pod setup命令更新本地spec镜像缓存,重新搜索`\n- `搜索不到则执行1.pod repo update 2.rm ~/Library/Caches/CocoaPods/search_index.json`\n- `在Podfile文件中用 pod 'YNPageViewController'`\n\n## 使用方法\n```\n1.新建控制器继承YNPageViewController 实现 YNPageViewControllerDataSource, YNPageViewControllerDelegate, delegate可选实现\n2.创建YNPageConfigration类进行配置信息\n3.创建实例方法\n+ (instancetype)pageViewControllerWithControllers:(NSArray *)controllers\n                                           titles:(NSArray *)titles\n                                           config:(YNPageConfigration *)config;\n4.具体使用方法可以查看Demos教程。\n```\n## 使用悬浮样式需要注意:\n```\n• SuspensionTop || SuspensionCenter 需要填充cell占位高度，不支持 [mj_header beginRefresing]\n\n• headerView高度较小建议使用 SuspensionTop，高度比较大建议使用 SuspensionCenter\n\n• SuspensionTopPause不需要填充占位cell高度，只是头部上拉时停顿。可实现QQ联系人效果。\n\n```\n## CocoaPods更新日志\n\n```\n• 2018-12-13 (tag 0.2.5): 添加数据源获取列表高度，默认是控制器高度 \n\n• 2018-07-27 (tag 0.1.3 ~ 0.1.7): 添加reloadData方法、自定义缓存Key可配置相同title、优化QQ联系人悬浮布局\n\n• 2018-07-27 (tag 0.1.3): 新增置顶API, 插入、删除、调整顺序控制器的API\n\n• 2018-07-23 (tag 0.1.2): 新增可以添加 ScrollMenu ButtonItem image\n\n• 2018-07-14 (tag 0.1.0): 修复头部视图可侧滑返回\n\n• 2018-07-14 (tag 0.0.9): 新增SuspensionTopPause样式和示例 (QQ联系人Tab布局)\n\n• 2018-07-12 (tag 0.0.7): 解决 SectionHeader 挡住 ScrollMenu 的问题\n\n• 2018-07-09 (tag 0.0.5): 新增悬浮Menu 偏移量\n\n• 2018-07-03 (tag 0.0.3): 新增刷新悬浮头部视图高度API\n  \n• 2018-06-29 (tag 0.0.2):\n  1.添加设置菜单栏选择字体大小属性\n  2.修复拉倒底部点击菜单栏下掉问题\n  \n• 2018-06-27 (tag 0.0.1): 发布Pods v0.0.1\n```\n## 联系方式:\n\n* Email : 1003580893@qq.com\n* QQ群 : 538133294\n* Blog  : https://www.yongyuandouneng.com\n\n![YN-iOS-交流群群二维码](http://paxdlrdk7.bkt.clouddn.com/IMG_1052.JPG)\n\n## 许可证\nYNPageViewController 使用 MIT 许可证，详情见 LICENSE 文件。 \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyongyuandouneng%2FYNPageViewController","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyongyuandouneng%2FYNPageViewController","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyongyuandouneng%2FYNPageViewController/lists"}