Coder Social home page Coder Social logo

loopscrollview's Introduction

LoopScrollView

UIScrollView 循环滚动Demo

###update v1.1

忘记没用autolayout,后来也是按照iPhone6 plus尺寸默认初始化的,导致6+一下均不能正常滑动,感谢@_洪小瑶
scrollview.frame = CGRectMake(0, 20, width, height)

Demo 地址 LoopScrollview

###Demo 演示

图1

###初始化 keypoint

1.按照3,1,2排列到UIScrollview容器上,conentOffset设置到第二屏

图1

###1 右滑循环 keypoint

1.1 正常scrollview滚动到2位置

图

1.2 让2处于中间位置,3位于2的右边,1位于2左边

1.2.1 2- 1 交换位置 【序号】

图

1.2.2 1 - 3 交换位置

图

1.2.3 充值frame位置 按照 容器 3 1 2 放置 且让contentOffset位于第二屏幕

图

###2 左滑循环 keypoint

2.1 正常scrollview滚动到3位置

图

2.2 让3处于中间位置,1位于3的右边,2位于3左边

2.2.1 3 - 1 交换位置 【序号】

图

2.2.2 1 - 2 交换位置

图

2.2.3 充值frame位置 按照 容器 3 1 2 放置 且让contentOffset位于第二屏幕

图

loopscrollview's People

Contributors

poholo avatar

Watchers

 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.