Giter Site home page Giter Site logo

artransitionanimator's Introduction

ARTransitionAnimator

ARTransitionAnimator is a simple class which custom UIViewController transition animation.

demo Gifs

Usage

 self.transitionAnimator = [[ARTransitionAnimator alloc] init];
 self.transitionAnimator.transitionDuration = 0.6;
 self.transitionAnimator.transitionStyle = ARTransitionStyleMaterial|ARTransitionStyleLeftToRight;

 FirstViewController *viewController = [[FirstViewController alloc] initWithNibName:@"FirstViewController" bundle:nil];
 self.navigationController.delegate = self.transitionAnimator; // set delegate
 [self.navigationController pushViewController:viewController animated:YES];

Install

TO DO

  • add more animations

  • Improve the show of animation

现在的版本只是写了很少的一部分,有很多的地方需要改进,由于最近项目上时间比较紧,耽搁了一些开源代码的进度,希望大家可以一起不断的完善这些代码。可以到我的github主页'https://github.com/AugustRush' fork 我的其他开源代码,帮助我不断的完善和改进。

artransitionanimator's People

Contributors

augustrush avatar irmakcan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

artransitionanimator's Issues

pod

could you plz make it pod

ERROR | license: Sample license type

when installing OR updating pod then getting this error message...
The ARTransitionAnimator pod failed to validate due to 1 error:
- ERROR | license: Sample license type.

If i download manually and check the "pod spec lint" then getting this error message.
-> ARTransitionAnimator (0.1)
- ERROR | license: Sample license type.
- ERROR | [OSX] unknown: Encountered an unknown error (The ARTransitionAnimator pod failed to validate due to 1 error:
- ERROR | license: Sample license type.

) during validation.

Analyzed 1 podspec.

[!] The spec did not pass validation, due to 2 errors

ios7 中 不能显示

UINavigationController *navigation = [[UINavigationController alloc] initWithRootViewController:viewController];
navigation.modalPresentationStyle = UIModalPresentationCustom;
navigation.transitioningDelegate = self.transitionAnimator;
[self presentViewController:navigation animated:YES completion:nil];

Warning: Attempt to present <UINavigationController: 0x1558c390> on <UINavigationController: 0x1553a550> which is already presenting <UINavigationController: 0x15580ae0>
不能显示controller

Presenting same viewcontroller for the fifth time app get unresponsive with lag in material mode

Hi again;

I'm experiencing very weird bug right now. When presenting my view controller with material style on fifth time app always get unresponsive. Without material style it works well.

I have tested your example it works well. I also test my app with other custom transitions they also worked well.

I have liked your library and want to work with it. But I couldn't solve this problem. Did you ever bump into this bug or do you have any idea why this is happening?

Below there is how I'm calling presentation.

if(!transitionAnimator){
    transitionAnimator = [[ARTransitionAnimator alloc] init];
    transitionAnimator.transitionDuration = 1;
    transitionAnimator.transitionStyle = ARTransitionStyleMaterial | ARTransitionStyleBottomToTop;
}

BounceViewController *bvc = [self.storyboard instantiateViewControllerWithIdentifier:@"BounceViewController"];
bvc.modalPresentationStyle = UIModalPresentationCustom;
bvc.transitioningDelegate = transitionAnimator;
[self presentViewController:bvc animated:YES completion:nil];

Thanks, already.

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.