Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在在这里发布问题之前,我正在寻找这个答案很长一段时间。我很确定这应该很容易,但是......
我有一个 UITextField ,当用户点击返回键时,应该插入一个换行符。就像 WhatsApp 使用返回键一样。
我怎样才能做到这一点?
提前致谢!
UITextView有这种行为。尝试使用它而不是UITextField
UITextView
UITextField