Giter VIP home page Giter VIP logo

zrcontrollertranstion's Introduction

ZRControllerTranstion

使用转场动画的时候必须引入头文件

#import "RogueViewControllerTranstion.h"

第一个类,必须要继承使用 ZRBaseViewController.h 该文件,其余不用继承此类,因为该类实现了一些代理设置,只需要继承即可

该转场动画与常用系统自带的转场动画有一点点区别,注释如下

- RoguePushAlphaTranstion: 和原本的方式相同
- RoguePushTopToBottomPresentTranstion: 上到下过度
- RoguePushBottomToTopPresentTranstion: 下到上过度
- RoguePushLeftToRightTranstion: 左到右过度
- RoguePushRightToLeftTranstion: 右到左过度
- RoguePushAlphaTopToBottomPresentTranstion: 渐影上到下过度
- RoguePushAlphaBottomToTopPresentTranstion: 渐影下到上过度
- RoguePushAlphaLeftToRightTranstion: 渐影左到右过度
- RoguePushAlphaRightToLeftTranstion: 渐影右到左过度
- RoguePopAlphaTranstion: 渐影过度
- RoguePopBottomToTopPresentTranstion: POP下到上过度
- RoguePopTopToBottomPresentTranstion: POP上到下过度
- RoguePopRightToLeftTranstion: POP右到左过度
- RoguePopLeftToRightTranstion: POP左到右过度
- RoguePopAlphaBottomToTopPresentTranstion: POP渐影下到上过度
- RoguePopAlphaTopToBottomPresentTranstion: POP渐影上到下过度
- RoguePopAlphaRightToLeftTranstion: POP渐影右到左过度
- RoguePopAlphaLeftToRightTranstion: POP渐影左到右过度

比如 push 的分类写法

- (void)pushAlpha_pushViewController:(UIViewController *)viewController animated:(BOOL)animate;
- (void)pushTopToBottomPresent_pushViewController:(UIViewController *)viewController animated:(BOOL)animate;
- (void)pushBottomToTopPresent_pushViewController:(UIViewController *)viewController animated:(BOOL)animate;
- (void)pushLeftToRight_pushViewController:(UIViewController *)viewController animated:(BOOL)animate;
- (void)pushRightToLeft_pushViewController:(UIViewController *)viewController animated:(BOOL)animate;
- (void)pushAlphaTopToBottomPresent_pushViewController:(UIViewController *)viewController animated:(BOOL)animate;
- (void)pushAlphaBottomToTopPresent_pushViewController:(UIViewController *)viewController animated:(BOOL)animate;
- (void)pushAlphaLeftToRight_pushViewController:(UIViewController *)viewController animated:(BOOL)animate;
- (void)pushAlphaRightToLeft_pushViewController:(UIViewController *)viewController animated:(BOOL)animate;

而 pop 退出的写法为以下

- (void)popAlpha_popViewControllerAnimated:(BOOL)animate;
- (void)popBottomToTopPresent_popViewControllerAnimated:(BOOL)animate;
- (void)popTopToBottomPresent_popViewControllerAnimated:(BOOL)animate;
- (void)popRightToLeft_popViewControllerAnimated:(BOOL)animate;
- (void)popLeftToRight_popViewControllerAnimated:(BOOL)animate;
- (void)popAlphaBottomToTopPresent_popViewControllerAnimated:(BOOL)animate;
- (void)popAlphaTopToBottomPresent_popViewControllerAnimated:(BOOL)animate;
- (void)popAlphaRightToLeft_popViewControllerAnimated:(BOOL)animate;
- (void)popAlphaLeftToRight_popViewControllerAnimated:(BOOL)animate;

zrcontrollertranstion's People

Contributors

rogueandy avatar

Stargazers

MohsinAli avatar

Watchers

MohsinAli 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.