iPhone-SDK: UITextView不显示换行键

时间:2022-10-09 10:42:27

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

我可以让键盘工作,但在UITextView上,但有些新的行键没有显示出来。

please help me

请帮我

thanks

谢谢

1 个解决方案

#1


2  

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

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

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

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

如果您正在使用IB,那么只需进入第一个inspector面板并设置TextInputTraits

#1


2  

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

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

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

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

如果您正在使用IB,那么只需进入第一个inspector面板并设置TextInputTraits