Textfield in the keyboard
How do you mak开发者_运维技巧e a keyboard have a textfield inside like the messages app ?
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.
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.
精彩评论