Giter Club home page Giter Club logo

dzmanimatedtransitioning's Introduction

DZMAnimatedTransitioning

效果:

效果


简介:

常用阅读软件打开书籍转场动画, 已封装支持项目使用, 简单使用。


使用简介:

1.通过继承 DZMATViewController 来使用控制器。

2.通过  [self.navigationController pushATViewController:vc animated:true]; 来执行动画

以上两点其实就是为了设置 self.navigationController.delegate = 目标控制器;


执行动画的对象简介:

基于 NSObject 扩展了 ATTarget 属性。(不用考虑图层层级问题, 无论多深的嵌套子视图都可以指定)

ATTarget 简介:

比如 VC1 跳转 VC2, 你想要 VC1 中的哪个视图带有转场动画就指定它(例子: VC1.ATTarget = 执行动画视图).

ATTarget 对象可以中途随意修改指定。

在返回操作中, 返回的转场动画也是通过它进行定位回到 VC1 中。

注意: ATTarget 如果没有值 默认会使用 VC1.view 作为动画目标使用

代码例子:

- (IBAction)openBook:(UIButton *)sender {

    // 指定动画对象(任意对象)
    self.ATTarget = sender;

    // TempViewController 继承于 DZMATViewController
    TempViewController *vc = [[TempViewController alloc] init];

    // 执行动画
    [self.navigationController pushATViewController:vc animated:true];
}

dzmanimatedtransitioning's People

Contributors

wiittersimithyu avatar

Stargazers

azure avatar

Watchers

James Cloos avatar azure 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.