Git Product home page Git Product logo

xxchildscrollcontroller's Introduction

XXChildScrollController

多子控制器左右滑动切换,支持导航栏titleView跟随渐变。

使用方法

组件提供一个基类XXChildScrollController,使用时继承该基类(例如子类为XXTempChildScrollController),重写两个方法:

- (void)scrollControllerWillEndChange; //滑动即将结束处理事件,此时nowIndex未改变(子类重写,对即将消失的页面进行业务处理)

- (void)scrollControllerDidEndChange; //滑动结束后处理事件(子类重写,对当前显示的页面进行业务处理)

使用很简单,一句代码搞定:

[[XXTempChildScrollController alloc] initWithChildControllers:self.childControllers startIndex:0];

具体效果:

image

最后

如果在使用中遇到任何问题或者建议,欢迎issues,我会尽快处理,如果帮助到你,你懂的😏。

xxchildscrollcontroller's People

Contributors

hjtxx avatar

Stargazers

Michael.Yang avatar Ronin avatar 小蜜蜂 avatar NSLegend avatar 会飞的鱼 avatar hejeffery avatar Radish avatar  avatar yiimoney avatar MWCao avatar  avatar xhq avatar  avatar FanXiaobin avatar  avatar Jack avatar  avatar  avatar 星辰大海 avatar ETHAN avatar 张欢 avatar 清风 ( Dash Geng ) avatar Huang avatar  avatar iMusic avatar archy avatar  avatar  avatar Zampono avatar  avatar  avatar  avatar Jack avatar  avatar  avatar  avatar

Watchers

chenxi avatar Michael.Yang avatar  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.