iPhone-SDK:UITextView不显示换行键

发布于 2024-08-04 03:23:06 字数 65 浏览 1 评论 0 原文

我可以让键盘工作,但在 UITextView 上,但新行键不显示。

请帮助我,

谢谢

I could get the keyboard to work but on a UITextView but some how the new line key doesn't show up.

please help me

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

乖不如嘢 2024-08-11 03:23:06

设置 (UIKeyboardType)keyboardType 和 (UIReturnKeyTYpe) returnKeyType
这些选项记录在此处

http://developer.apple.com/iPhone/library/documentation/UIKit/Reference/UITextInputTraits_Protocol/Reference/UITextInputTraits.html#//apple_ref/occ/intf/UITextInputTraits

(如果您正在构建)在代码中。

如果您使用的是 IB,则只需转到第一个检查器面板并设置 TextInputTraits

Set the (UIKeyboardType)keyboardType and (UIReturnKeyTYpe) returnKeyType
The options are documented here

http://developer.apple.com/iPhone/library/documentation/UIKit/Reference/UITextInputTraits_Protocol/Reference/UITextInputTraits.html#//apple_ref/occ/intf/UITextInputTraits

if you are building in code.

If you are using IB then just go to the first inspector panel and set the TextInputTraits

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文