-1
textViewObj.text = @「更新我的興趣愛好,更新基礎,註冊 更新我尋找的應該是...」
如何在TextView中通過行添加上述信息的形式O線?
請幫幫我。 預先感謝您。
textViewObj.text = @「更新我的興趣愛好,更新基礎,註冊 更新我尋找的應該是...」
如何在TextView中通過行添加上述信息的形式O線?
請幫幫我。 預先感謝您。
分隔每個行上使用換行字符,這是
@"\\n"
可可
。注意雙反斜線
[email protected]"updated My interests \\n updated Basics \\n registration updated My partner should be..."
如果你有太多的逗號來代替,這樣做
NSString *stringSeparatedByNewLine = [stringWithCommas stringByReplacingOccurrencesOfString:@"," withString:@"\\n"];
textViewObj.text=stringSeparatedByNewLine;