How do you make a keyboard have a textfield inside like the messages app ?
Asked
Active
Viewed 554 times
2 Answers
2
never tried but you can try this -
You can programmatically
- set a tool bar.
- set a textfield.
- set the tool bar as the inputAccessoryView of the textfield.
- make the textfield the first responder.

shannoga
- 19,649
- 20
- 104
- 169
1
It depends what you're trying to do with it. You could simply create a view that looks like the keyboard section and show it right above the keyboard. If you're trying to actually send SMSs/emails, look up the MessageUI documentation.

Aurum Aquila
- 9,126
- 4
- 25
- 24
-
I realised that later that the MessageUI is meant for actually sending SMS and mails. What I wanted was to have a keyboard similar to the ones in apps like Meebo, Messages, IM apps, thats it no sending actual messages – rounak Jan 25 '11 at 12:09
-
Which is why I mentioned floating a UIView on top of your views that appears right above the keyboard. It doesn't have to be part of the keyboard. You could also message one of those apps devs - us devs have to work together, one of them might share their secret. – Aurum Aquila Jan 25 '11 at 12:11