Giter Site home page Giter Site logo

bltransitionanimator's Introduction

BLTransitionAnimator

pod 导入 pod 'BLTransitionAnimation'

使用方法

1>导入头文件 #import“BLTransitionAnimator.h”

2>跳转方法

//模态跳转 [self bl_presentViewController:nav AnimatorStyle:bl_Type animated:YES];

//push跳转 [self.navigationController bl_pushViewController:vc AnimatorStyle:bl_Type animated:YES];

3>目前只提供了4中+一个自定义的方法 自定义动画应该能满足大部分人的需求 typedef NS_OPTIONS(NSUInteger, BLTransitionAnimatorStyle) { BLTransitionAnimatorTop= 0,//从顶部滑入 BLTransitionAnimatorLeft, //从左边滑入 BLTransitionAnimatorBottom, //从底部滑入 BLTransitionAnimatorRight,//从右边滑入 BLTransitionAnimatorCustom//自定义动画 };

4>自定义动画位置 //修改内部的方法 对toView 和FromeView进行动画即可 BLDIYTrasitionAnimation.m

5>注意事项 img

Presentation/push 时候 fromView = The presenting view toView = The presented view

Dismissal/pop时候

fromView = The presented view. toView = The presenting view.

bltransitionanimator's People

Contributors

icetears1 avatar

Stargazers

JasonFu avatar  avatar  avatar iMusic avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

wubin123 cnkyo

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.