All Projects → yongyuandouneng → Ynpageviewcontroller

yongyuandouneng / Ynpageviewcontroller

Licence: mit
特斯拉组件、QQ联系人布局、多页面嵌套滚动、悬停效果、美团、淘宝、京东、微博、腾讯新闻、网易新闻、今日头条等标题滚动视图

Projects that are alternatives of or similar to Ynpageviewcontroller

Rsdayflow
iOS 7+ Calendar (Date Picker) with Infinite Scrolling.
Stars: ✭ 843 (-20.99%)
Mutual labels:  scrollview
Uiscrollview Infinitescroll
UIScrollView ∞ scroll category
Stars: ✭ 957 (-10.31%)
Mutual labels:  scrollview
Blockchaindemo
A simple demo for Blockchain in Swift
Stars: ✭ 44 (-95.88%)
Mutual labels:  ios-app
Kotlin Native Superhero App
Android and iOS master detail application for list Marvel Super Heroes
Stars: ✭ 15 (-98.59%)
Mutual labels:  ios-app
Mangosta Ios
MongooseIM client for iOS
Stars: ✭ 28 (-97.38%)
Mutual labels:  ios-app
Cocoaasyncsocket demo
基于AsyncSocket搭建即时通讯体系 . 包含TCP连接 , 消息发送 , 消息接收 , 心跳处理 ,断网重连 , 消息超时 , 消息分发 , 数据库结构设计 , 消息丢失等 . 以及UI设计, 文本表情消息/语音消息/图片消息/视频消息/文件消息/撤回消息/提示语消息的实现思路讲解
Stars: ✭ 981 (-8.06%)
Mutual labels:  ios-app
Horoscope App
Horoscope ☯♉♊♋♌♍
Stars: ✭ 20 (-98.13%)
Mutual labels:  ios-app
Flutter Tasky App
A Flutter Task App
Stars: ✭ 48 (-95.5%)
Mutual labels:  ios-app
Avsqldebugger
A Simple Core Data Debugger that will look inside your apps DB
Stars: ✭ 30 (-97.19%)
Mutual labels:  ios-app
Ios Oss
Kickstarter for iOS. Bring new ideas to life, anywhere.
Stars: ✭ 7,840 (+634.77%)
Mutual labels:  ios-app
React Natives App
App for the React & React Native developer community as a demo project for the React Native meetups in Germany
Stars: ✭ 20 (-98.13%)
Mutual labels:  ios-app
Tasks
A clone of Google Tasks app made from scratch with flutter. WIP.
Stars: ✭ 28 (-97.38%)
Mutual labels:  ios-app
Focus Ios
Firefox Focus for iOS
Stars: ✭ 989 (-7.31%)
Mutual labels:  ios-app
Smkcyclescrollview
SMKCycleScrollView - An awesome advertisement cycleScrollView
Stars: ✭ 11 (-98.97%)
Mutual labels:  scrollview
Papr
🌁 An Unsplash app for iOS
Stars: ✭ 1,025 (-3.94%)
Mutual labels:  ios-app
Rubyconferences Ios
iOS app for rubyconferences app
Stars: ✭ 24 (-97.75%)
Mutual labels:  ios-app
E Commerce App Ui Flutter
Nice and clean Online Shop app UI by using #Flutter.
Stars: ✭ 965 (-9.56%)
Mutual labels:  ios-app
Kotlin Multiplatform Showcase
A real minimal app illustrating Kotlin Multiplatform
Stars: ✭ 51 (-95.22%)
Mutual labels:  ios-app
Glucosio Ios
Glucosio iOS App
Stars: ✭ 47 (-95.6%)
Mutual labels:  ios-app
Passforios
Pass for iOS - an iOS client compatible with Pass command line application.
Stars: ✭ 991 (-7.12%)
Mutual labels:  ios-app

image

集合了多种样式的嵌套页面布局(滑动库):

本库是对YNPageScrollViewController 进行重构,优化代码,重写实现原理。其优点如下:

优点
易于集成,多种样式以供选择,特斯拉(悬浮)布局等
控制器生命周期完好无损、懒加载控制器
高性能: 用双缓存机制让界面只存在一个控制器
支持UISollView、UITableView、UICollectionView、
支持列表拓展tableFooterView、tableHeaderView、
支持CollectionView的瀑布流、FlowLayout修改的布局
支持头部拉伸放大特效、还有其他部分拓展的API

Demo效果图

image

Requirements 要求

  • iOS 8+
  • Xcode 8+

Installation 安装

1.手动安装:

  • 下载DEMO后,将子文件夹Libs/YNPageViewController拖入到项目中, 导入头文件YNPageViewController.h开始使用.

2.CocoaPods安装:

  • 一、可以直接在项目Podfile 文件中 pod 'YNPageViewController'

  • 二、先pod search YNPageViewController 搜索一下

  • 如果发现pod search YNPageViewController 不是最新版本,在终端执行pod setup命令更新本地spec镜像缓存,重新搜索

  • 搜索不到则执行1.pod repo update 2.rm ~/Library/Caches/CocoaPods/search_index.json

  • 在Podfile文件中用 pod 'YNPageViewController'

使用方法

1.新建控制器继承YNPageViewController 实现 YNPageViewControllerDataSource, YNPageViewControllerDelegate, delegate可选实现
2.创建YNPageConfigration类进行配置信息
3.创建实例方法
+ (instancetype)pageViewControllerWithControllers:(NSArray *)controllers
                                           titles:(NSArray *)titles
                                           config:(YNPageConfigration *)config;
4.具体使用方法可以查看Demos教程。

使用悬浮样式需要注意:

• SuspensionTop || SuspensionCenter 需要填充cell占位高度,不支持 [mj_header beginRefresing]

• headerView高度较小建议使用 SuspensionTop,高度比较大建议使用 SuspensionCenter

• SuspensionTopPause不需要填充占位cell高度,只是头部上拉时停顿。可实现QQ联系人效果。

CocoaPods更新日志

• 2018-12-13 (tag 0.2.5): 添加数据源获取列表高度,默认是控制器高度 

• 2018-07-27 (tag 0.1.3 ~ 0.1.7): 添加reloadData方法、自定义缓存Key可配置相同title、优化QQ联系人悬浮布局

• 2018-07-27 (tag 0.1.3): 新增置顶API, 插入、删除、调整顺序控制器的API

• 2018-07-23 (tag 0.1.2): 新增可以添加 ScrollMenu ButtonItem image

• 2018-07-14 (tag 0.1.0): 修复头部视图可侧滑返回

• 2018-07-14 (tag 0.0.9): 新增SuspensionTopPause样式和示例 (QQ联系人Tab布局)

• 2018-07-12 (tag 0.0.7): 解决 SectionHeader 挡住 ScrollMenu 的问题

• 2018-07-09 (tag 0.0.5): 新增悬浮Menu 偏移量

• 2018-07-03 (tag 0.0.3): 新增刷新悬浮头部视图高度API
  
• 2018-06-29 (tag 0.0.2):
  1.添加设置菜单栏选择字体大小属性
  2.修复拉倒底部点击菜单栏下掉问题
  
• 2018-06-27 (tag 0.0.1): 发布Pods v0.0.1

联系方式:

YN-iOS-交流群群二维码

许可证

YNPageViewController 使用 MIT 许可证,详情见 LICENSE 文件。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].