Giter Club home page Giter Club logo

leftorrightdraw's Introduction

LeftOrRightDraw

##左右抽屉总结 ###展示效果图 Mou icon Mou icon Mou icon

##第三方抽屉效果

  1. 抽屉效果的基本原理应用了父子视图的层级,视图的位置改变,动画,手势操作等主要知识点。熟练掌握基础知识并灵活运用,即可实现该效果。

    • 父子视图的层级: 在指定层级上插入子视图 [view insertSubView: atIndex:]
    • 视图位置的改变: 通过视图的frame,center属性调整
    • 动画:可使用UIView或CALayer的动画,这里主要使用了UIView的动画方法 [UIView animateWithDuration:……. ]
    • 手势操作:主要使用到UISwipeGestureRecognizer, UIPanGestureRecognizer. 通过点击,或轻扫,拖动手势操作完成抽屉的开关。

    除了左右两侧的侧滑效果外,通常情况下将app中类似新闻栏目点击后,内容随之切换的效果也称之为抽屉效果。

  2. 其他第三方开源抽屉效果

    以上是几种常见的抽屉效果第三方开源,根据实际项目需要选择合适的库,建议使用1,2,6三种。

leftorrightdraw's People

Contributors

mengzhihun6 avatar

Watchers

James Cloos avatar Xiao Dong Wang 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.