GithubHelp home page GithubHelp logo

xingyunlong / gkpagescrollview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from quintgao/gkpagescrollview

0.0 0.0 0.0 26.05 MB

iOS类似微博、抖音、网易云等个人详情页滑动嵌套效果

License: MIT License

Objective-C 56.57% Ruby 0.60% Swift 42.82%

gkpagescrollview's Introduction

   License MIT      cocoapods    cocoapods    support

iOS类似微博、抖音、网易云等个人详情页滑动嵌套效果

GKPageScrollView是一个UIScrollview嵌套滑动库,主要参考了JXPagingView,在他的基础上做了修改,实现了自己想要的效果。

主要功能

  • 支持上下滑动、左右滑动,手势返回等
  • 支持如UITableView的sectionView的悬停效果
  • 支持多种分页控件,如JXCategoryView,WMPageController,VTMagic
  • 可实现导航栏颜色渐变、头图下拉放大等效果
  • 支持主页、列表页下拉刷新,上拉加载
  • 支持列表懒加载功能

使用方法

1、手动安装

下载GKPageScrollView demo
  • Objective-C:拖入GKPageScrollView/objc文件夹中的.h和.m文件,#import "GKPageScrollView.h",开始使用
  • Swift:拖入GKPageScrollView/swift文件夹中的.swift文件,开始使用

2、CocoaPods安装:

  • Objective-C:pod 'GKPageScrollView' then #import <GKPageScrollView.h>
  • Swift:pod 'GKPageScrollViewSwift' then import GKPageScrollViewSwift

如果发现pod search GKPageScrollView/GKPageScrollViewSwift 不是最新版本,在终端执行pod setup命令更新本地spec镜像缓存,重新搜索即可。

效果图

说明 效果图
微博个人主页 wb
微博发现页 wb
网易云歌手页 wy
抖音个人主页 dy
主页下拉刷新 dy
列表下拉刷新 dy
列表懒加载 dy
嵌套滑动1 dy
嵌套滑动2 dy

说明

简书:iOS-多个UIScrollView滑动嵌套(仿微博、抖音、网易云个人详情页)

注意

1、尽量不要在代理方法里创建视图,如headerView,pageView等

版本更新

  • 2019.11.11 1.3.3 - 修复GKPageScrollView与返回手势的滑动冲突
  • 2019.10.25 1.3.1 - 增加GKPageTableViewDelegate,解决嵌套时的滑动冲突
  • 2019.10.22 1.3.0 - 修复pageScrollView高度为0时出现的崩溃问题
  • 2019.10.09 1.2.9 - 解决pageScrollView不是全屏时的高度不准确问题
  • 2019.06.16 1.2.7 - 优化设置列表加载方式的方法,可通过属性设置懒加载方式
  • 2019.06.06 1.2.6 - 解决当HeaderView的高度设置为小于1时列表不能滑动问题
  • 2019.06.03 1.2.5 - 修改点击状态栏后位置错乱问题
  • 2019.04.22 1.2.3 - UITableView cell点击处理,解决使用mj_header可能出现的bug
  • 2019.04.18 1.2.1 - 公开滑动处理方法,修复方法版本判断错误问题
  • 2019.03.21 1.2.0 - 优化刷新方法,可用于实现item个数不固定的情况
  • 2019.03.14 1.1.0 - 增加列表懒加载功能,可用于子列表较多的情况
  • 2019.03.04 1.0.9 - 增加Swift版本,pod统一更新到1.0.9
  • 2019.02.25 1.0.7 - 优化切换临界点和原点的方法,增加仿微博发现页demo
  • 2019.02.20 1.0.6 - 增加快速切换临界点和原点的方法
  • 2018.12.11 1.0.3 - 支持下拉刷新、上拉加载

gkpagescrollview's People

Contributors

quintgao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.