Thursday 15 August 2013

objective c - Animate iOS Keyboard to Disappear with View Controller -


I am writing an iOS application and I am coming into a small visual bug. When the user is on a certain view controller and presses a button, they can use the following view controller by using [self.navigationController pushViewController: myViewController Animated: Yes]

Are sent to The text field and the two buttons on the scene controlled by the view controller when the user is typing into a text field and clicks on any of the buttons, the keyboard disappears downwards, while the view disappears on either the left or right side goes.

What do I need in Notes apps if the user is writing a note and clicks on the left navigation bar button called "Notes" where the keyboard leaves with the view.

I do not think this can be done in a normal way, but I will try this trick:

  • Take a snapshot of the keyboard before rejecting the VC

  • Then create a scene or a layer with that image, And place it on the top of the keyboard (how to do it).

  • Animate the scene with the view you rejected.

No comments:

Post a Comment