Questions tagged [uiviewanimationtransition]

Specifies a transition to apply to a `UIView` in an animation block.

407 questions
4
votes
3 answers

UIView transitioning to the same view

I have a UITableView controller displaying static tableview. I have to update the project providing a secondary mode where this tableview is supposed to flip and to show different data. My approach would be to put all the static cells of both modes…
Claus
  • 5,662
  • 10
  • 77
  • 118
4
votes
1 answer

Transition Animation Between Activities with AnimationSet

The overridePendingTransition(int, int) method provides a way to animate between activities using the animation XML resources. But what if We need to assign an AnimationSet (a bunch of animations that might even include a java animation too) as its…
3
votes
2 answers

animateTransition no longer working on modally presented viewController in iOS 13

I have been using the following method in my custom Animator class for a transition when a user selects a imageView in a cell of a tableViewController to a focus view showing the enlarged image. The imageView animates nicely from it's frame in the…
alionthego
  • 8,508
  • 9
  • 52
  • 125
3
votes
1 answer

How to solve this problem with custom transition in iOS?

I built a class to implement a circular transition between view controllers. When I hit the button to navigate to the other view controller a circle starts growing from the button until it fills the screen with the new controller. When I dismiss the…
Lucas
  • 746
  • 8
  • 23
3
votes
2 answers

flip transition flips view from top in landscape mode

I am using this code to for flip transition. MyViewController *viewController = [[MyViewController alloc] init]; [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1.0]; [UIView…
ingsaurabh
  • 15,249
  • 7
  • 52
  • 81
3
votes
1 answer

The navigation controller delegate method is not getting a call

In the following code, I am trying to create a custom animator during navigation transition but the navigation controller delegate method is not getting a call. Please look at the below code and suggest me a solution. Please note that I have…
3
votes
1 answer

The frame of the UIView is changed after be flipped

I used UIView.transition method to flip between 2 views, but after that, the frame of both views was changed. if isFront { UIView.transition(from: frontView, to: behindView, duration: 0.5, options: .transitionFlipFromRight,completion: {…
Trung Hoang
  • 94
  • 11
3
votes
0 answers

View transition from UICollectionView cell to UIViewController by expanding

I have a collection view and I want to expand cell when clicked. Cell should be expanded to full screen and change to another UIViewController. I want transition to be smooth however, I don't know how to change collectionview cell to…
3
votes
2 answers

UIView setAnimationTransition only working sometimes but not always?

I'm writing a little card game where 4 cards are dealt to the screen and the user can tap each card to reveal (and again to hide) it. Each card-front and card-back are stored in image views. A UIButton catches the user tap and should flip the card…
SpaceAce
  • 43
  • 4
3
votes
2 answers

Cross-Disolve transition just changes instantly - Swift 3.0

I'm trying to change the color of a button's background using the cross dissolve animation, however, whenever I run this it instantly change the color instead of having a smooth transition. UIView.transition(with: self.SignIn, …
3
votes
2 answers

Swift: transitionFromView flip whole screen instead of view

I have a weird issue with swift. I am trying to flip two views, not the whole screen but it flips the whole screen. It has been asked before on here but no answer: flip animation in swift flips whole view not subviews This is the references to the…
Nicholas Muir
  • 2,897
  • 8
  • 39
  • 89
3
votes
2 answers

Black Color Behind UIView while UIView Transition Animation

I am doing transition animation using the following block. But I observed that during flip animation a black color layer appears beneath the UIView. Is there any way to set custom color to that layer. UIView.transitionWithView(ibContainerView,…
ankit
  • 3,537
  • 1
  • 16
  • 32
3
votes
0 answers

How animateAlongsideTransition work?

This is my part of my subclass of UIPresentationController: override func presentationTransitionWillBegin() { if let containerView = containerView { dimmingView.frame = containerView.bounds dimmingView.backgroundColor =…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
3
votes
1 answer

When using [UIViewControllerTransitionCoordinator animateAlongsideTransition:completion:] in a modal presentation, the animation block is not called

I have a UIViewController that is being presented via a modal segue in a storyboard (embedded in a UINavigationController). I'm trying to animate the keyboard appearance alongside the modal presentation (logic for this is beyond the scope of the…
3
votes
1 answer

TextView gravity in shared element transitions

I am having a small problem using Shared Element Transition for Android fragments. I am trying to move a TextView between two fragments. I manage to get it successfully to transition, however, the Textview android:gravity seems to stick when I try…
AndroidP
  • 751
  • 1
  • 10
  • 19