recruit-mp / rmpzoomtransitionanimator Goto Github PK
View Code? Open in Web Editor NEWA custom zooming transition animation for UIViewController
License: MIT License
A custom zooming transition animation for UIViewController
License: MIT License
From the demo project, I clicked into "CollectionView, Navigation Push Transition", then clicked one of the cells in the ViewController and lastly when i clicked "back" from DetailViewController (Result: navigation bar is hidden). This happens to my project as well when i implemented this. Please help.
Can you please add an iPad example? i seem to be unable to make it work on the iPad, for some reason.
If you use this animator in navigation controller animations, it will be disable to use edge swipe gesture to pop a navigation controller.
You can avoid that temporarily like a below code.
- (void)viewDidLoad
{
[super viewDidLoad];
// receive interactivePopGestureRecognizer delegate from your UINavigationController
self.navigationController.interactivePopGestureRecognizer.delegate = self;
}
- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer
{
// remember swiping here
return YES;
}
- (id <UIViewControllerAnimatedTransitioning>)navigationController:(UINavigationController *)navigationController
animationControllerForOperation:(UINavigationControllerOperation)operation
fromViewController:(UIViewController *)fromVC
toViewController:(UIViewController *)toVC
{
if (/* if edge swiping */) {
return nil;
}
return animator;
}
Issue 1 - The pod file is outdated, while doing Pod Install it shows errors.
After modifying pod file issue got resolved. Follow the link below.
button/DeepLinkKit#106
Issue 2 - [!] No podspec found for RMPZoomTransitionAnimator
in .
could not find a fix for this.
Can you please update the description or please the project, i request you make it work.
Hope the needful
Thanks in advance.
I have a collection view controller, and it's datasource come from a view controller that push it. Every time I push this collection view controller, it's datasource will get reloaded. I set two breakpoints to cellForItemAtIndexPath
and transitionDestinationImageViewFrame
. The first function get called is transitionDestinationImageViewFrame
and then cellForItemAtIndexPath
. When it's in transitionDestinationImageViewFrame
, the collection view cell is not init yet, so there is no way the animation will work. So, how to call transitionDestinationImageViewFrame after the collection view controller finished reload data, for example cellForItemAtIndexPath.
Hi
I'm trying to implement this animation in a Swift project.
The problem I'm facing is that whenever my destinationController or sourceController is checked in RMPZoomTransitionAnimator.m for conformity to the RMPZoomTransitionAnimating protocol the check always fails, even though I implement the protocol in the controllers.
What is there that I don't know?
Hello,
It would be great to have two optionals methods in RMPZoomTransitionAnimating protocol to be notified of the end of the forward and backward animations.
Great work by the way.
Cheers
Hi all,
The scenario I have is that the collection view has a few images, and when tapped the images are shown full screen. The first screen with the collection view has the status bar showing but the full screen image viewer does not.
The animation to go forward works fine as does the animation going back but the views no longer look write because the top layout guide is not correct.
If I show the status bar on the image viewer it all works fine.
My problem looks very similar to this one:
http://stackoverflow.com/questions/20312765/navigation-controller-top-layout-guide-not-honored-with-custom-transition
Is anyone else having this issue?
Thanks,
Mof.
I think read.md
needs to be changed if you use cocoapods
For some reason, when I close from a modal presentation, my red navigation bar flashes white before switching back to red. Do you have any ideas on why this might be happening?
Is it possible to have the update for Swift 4 and Xcode 9.1 ?
Copyright of LICENSE file maybe mistakes.
Copyright (c) 2015 Masato Ohshima [email protected]
I have a problem using this library on a navigation controller with an opaque navigation bar. It seems the final frame is not calculated properly and the top side of the view is hidden by the navigation bar.
An example to reproduce this is just adding the following code in the viewDidLoad
method in the NavigationController
class in the provided example:
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
self.delegate = self;
self.navigationBar.translucent = NO;
}
Any workaround for this?
Can we get a Swift example with autolayout.
I have the following structure:
Navigation Controller -(1)-> TableViewController -(2)-> TableViewController -(3)-> CollectionViewController -(4) -> CollectionViewController.
RMPZoomTransitionAnimator
is applied on segue (4). If I press back button in the middle of the animation, nothing happens and it goes with the animation back as expected. And the following message appears:
nested pop animation can result in corrupted navigation bar
Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.
And after that, I have to press several time back button in order to go to TableViewController (3)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.