Transition to Modal View Controller with Keyboard Visible?

The keyboard is a separate UIWindow object. It is not in the same view hierarchy as your view controller's view. To make this happen, you would have to dig around in the UIApplication 's windows property for the keyboard window and replace its default animation with a custom animation.

Up vote 0 down vote favorite share g+ share fb share tw.

Currently, the modal's text view becomes the first responder as soon as it's view is loaded, which causes the keyboard to animate coming up from the bottom. I'd like the keyboard to already be on the modal and be a part of it's transition. Any suggestions?

Objective-c ios modalviewcontroller link|improve this question asked Feb 5 at 18:02Ash Furrow1,611218 94% accept rate.

Sooner than viewDidLoad or init ... No – danipralea Feb 5 at 18:07.

The keyboard is a separate UIWindow object. It is not in the same view hierarchy as your view controller's view. To make this happen, you would have to dig around in the UIApplication's windows property for the keyboard window and replace its default animation with a custom animation.

1 for The keyboard is a separate UIWindow object. However, suggesting that someone dig around in the UIApplication's windows property for the keyboard window is probably not a great idea - unless you don't care about the app store - or about your application working when an iOS update is released. – Steve Feb 5 at 18:37.

You could try putting the becomeFirstResponder code in vieWillAppear, but that isn't the "right" thing to do anyway. You will probably need to replace the actual keyboard animation with a custom animation to force it to load immediately and without scrolling up.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions