开发者

iphone SDK: how to add a new line char to my uitextview programmatically?

开发者 https://www.devze.com 2022-12-28 11:15 出处:网络
Please h开发者_如何学Celp me adding a line break (\\r\\n) programatically to my UITextView.If you get the text from the text view, create a mutable version of the text, then add just \\n, the set the

Please h开发者_如何学Celp me adding a line break (\r\n) programatically to my UITextView.


If you get the text from the text view, create a mutable version of the text, then add just \n, the set the text view's text, it'll work. Don't put a carriage return and a linefeed both.

0

精彩评论

暂无评论...
验证码 换一张
取 消