Questions tagged [custom-transition]

Developer defined transition between views, which gives full control to define the animations that are used when a navigation from one view controller to another occurs.

86 questions
2
votes
1 answer

How to make a custom transition behave like a fall under the gravity?

The effect could be implemented like the following code in animateTransition method: UIView.animateWithDuration(duration, delay: 0, usingSpringWithDamping: 0.3, initialSpringVelocity: 0.0, options: .CurveLinear, animations: { …
mrahmiao
  • 1,291
  • 1
  • 10
  • 22
2
votes
1 answer

UIViewController custom transitions and state restoration

I have a view controller that is using a custom transition, and it is working well. It takes advantage of the fact that when using UIModalPresentationCustom, the presenting view controller is not removed, and places the new view controller over it…
2
votes
1 answer

ios7 custom transition for navigationcontroller on tabbarcontroller

My ViewController hierachy is as follows: UITabbarcontroller ->UINavigationController1 ->FirstViewController ->UINavigationController2 ->UIViewController So I want to push a SecondViewController on top of my FirstViewController. The custom…
wjh
  • 597
  • 2
  • 6
  • 18
1
vote
1 answer

Anchor keyboard like iMessage app when define custom transition animator in UINavigationController

I created a custom push/pop transition in Navigation Controller. Everything is fine, except for one little fact: when I swipe back keyboard doesn't anchor to the poped view controller. Here is some pictures to demonstrate what's happening and what…
ton252
  • 364
  • 3
  • 13
1
vote
1 answer

Xamarin Forms Android - Keep popped page visible while it transitions off the screen

I'm trying to add native feeling animations to my xamarin forms app to add a professional finish. I've overridden the navigation page renderer to implement my own animations on transitions with the following code... [assembly:…
Mitchell
  • 13
  • 5
1
vote
0 answers

Changing frame of presented navigation view controller from custom UIPresentation Controller not changing bounds of navigation controller childrens

I am presenting a navigation controller with custom transition and custom presentation controller. Presentation controller listen for keyboard, and change presented view controller frame accordingly. In first screen keyboard is active so presented…
1
vote
1 answer

Swift 3: UIViewControllerTransitioningDelegate stopped working

In my app I have a couple of classes used for custom transitioning. Prior to Swift 3 all was working fine. However, after updating to Swift 3, func presentationController(forPresented presented: UIViewController, presenting: UIViewController?,…
Hussein B
  • 11
  • 2
1
vote
1 answer

Custom push transition isn't working whereas the same custom present transition is

I have followed this tutorial and watched the WWDC video on this subject but I couldn't find my answer. I have almost the same transition in my code. It is working pretty well when I am doing it as a presented view, but not as a pushed view. It is…
Tulleb
  • 8,919
  • 8
  • 27
  • 55
1
vote
0 answers

Custom Viewcontroller transition bug on rotation of the device

I am trying to customise the navigation controller push and pop transition. It's basically alpha animation is happening. Here is the code. It's working really cool until i rotate the iPad after presentation and when I dismiss the presenting…
kidsid49
  • 1,358
  • 3
  • 18
  • 37
1
vote
1 answer

Custom pop animation to a UICollectionViewController doesn't work

I have a collection view called ProfileCollectionViewController for collection of images. When clicked on an image it presents a HorizontalProfileViewController which displays images in full screen. When back button is pressed on…
Subash
  • 1,002
  • 13
  • 26
1
vote
0 answers

UIPercentDrivenInteractiveTransition captures all sublayer animations

I have created an interactive transition using UIPercentDrivenInteractiveTransition Problem I'm having is that percent driven transition is also capturing those animations which are in toVC Is there a way to make them independent?
Armands L.
  • 1,885
  • 2
  • 14
  • 18
1
vote
1 answer

How to access UITableView cell frame in animateTransition:transitionContext

I am attempting to make a modal custom transition where I need the frame the first cell of a tableview in the view controller I am transitioning TO. When I put breakpoints in animateTransition:transitionContext after the following code: NSIndexPath…
Matt Miller
  • 1,421
  • 1
  • 15
  • 24
1
vote
2 answers

Custom transition results in black screen or unresponsive screen

Ive created a custom UIViewControllerAnimatedTransition (the code is show below). The transition will focus only on the animation when dismissing the view. When I dismiss the view I get a black screen, the master is briefly shown before it…
DevC
  • 6,982
  • 9
  • 45
  • 80
1
vote
2 answers

Can I control the transition (ie through user swiping) between two view controllers?

I wish to have one view controller slide off the screen as the user drags it, with the user able to drag their fingers back and forth to control the transition. I know that custom transitions are possible, and was wondering if this was possible?
Andrew
  • 7,693
  • 11
  • 43
  • 81
1
vote
2 answers

Circular transition (mask) in iOS and Objective C

We were wondering how we can easily build a circular mask, that blends out the background and transitions into a new view, with new buttons? See example here (watch the red planet gets triggered):