Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why keyboard hides when I apply custom push animation?

I have two controllers with UITextFields on them. I need a custom transition between them with the keyboard shown, alongside transition.

When I'm using the default push animation, everything is good. But if I return my transition class from animationControllerForOperation, the keyboard is hiding before and showing after the transition.

So, could someone suggest to me a solution or explanation, why the keyboard is hiding with the custom transition? Transition duration = 0.4, I've set [textField becomeFirstResponder] in viewDidLoad.

Here is a video: https://www.youtube.com/watch?v=gs16tMsU4qY

like image 874
trickster77777 Avatar asked Dec 23 '25 02:12

trickster77777


1 Answers

Take a look at UIViewControllerTransitionCoordinator class.

Here is the answer to the similar issue: https://stackoverflow.com/a/21017900

like image 113
tar500 Avatar answered Dec 24 '25 17:12

tar500



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!