简体   繁体   中英

Textfield in the keyboard

如何使键盘内部有文本字段,如消息应用程序?

never tried but you can try this -

You can programmatically

  1. set a tool bar.
  2. set a textfield.
  3. set the tool bar as the inputAccessoryView of the textfield.
  4. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM