简体   繁体   English

键盘中的文本字段

[英]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. 将工具栏设置为文本字段的inputAccessoryView。
  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. 如果您尝试实际发送短信/电子邮件,请查看MessageUI文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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