【问题标题】:UITextField with auto wrapping具有自动换行功能的 UITextField 【发布时间】:2011-09-27 12:08:15 【问题描述】: 我正在尝试使用自动文本换行来制作 UITextField,但我做不到。 【问题讨论】: 这个链接有你问题的答案。 stackoverflow.com/questions/2979661/uitextfield-rigtht-frame 标签: objective-c ios cocoa-touch uitextfield 【解决方案1】: 使用 UITextView 更容易 http://developer.apple.com/library/IOS/#documentation/UIKit/Reference/UITextView_Class/Reference/UITextView.html 【讨论】: 但如果我使用 UITextView,我无法显示键盘。我想对我的网站发表评论。 亲爱的 itruf,即使您使用 UITextView,键盘也会一直存在