views:

62

answers:

2

I have an application that allows the user to edit multiple text fields and views. Rather than mess around raising each view to the top when the keyboard is active, I decided to instead make one textView for editing and hide/show it when input is needed, then transfer the data when it is done. To move focus to the new textView, I call its becomeFirstResponder method, and lo and behold, the cursor goes to the right place. However if I use this method, the iPhone keyboard does not appear. I have no idea why. Can anyone explain, and tell me how to make the keyboard appear? All the other questions I've looked at seem to indicate that setting becomeFirstResponder for a textView ought to make the keyboard come up.

-Ash

+1  A: 

Is Hardware -> Simulate Hardware Keyboard enabled?

Ole Begemann
Yep.However, I think I found out what the problem was. I was attempting to set the delegate within a routine that somehow denied the setting of a delegate, namely textViewDidBeginEditing
Ash
+1  A: 

Are you doing this whole thing programatically or using Interface Builder as well? If so are the IB connections setup right?

Yep, otherwise it wouldn't have performed the other tasks within the same code block. However, I think I found out what the problem was. I was attempting to set the delegate within a routine that somehow denied the setting of a delegate, namely textViewDidBeginEditing
Ash