我有一个NSTextView,我需要插入一个换行符.代码如下所示:
NSString *myString = @"test" [myTextView insertText:myString]; /**** INSERT LINE BREAK HERE ****/ [[myTextView textStorage] insertAttributedString:MY_ATTRIBUTED_STRING atIndex:myString.length];
任何人都知道如何做到这一点?
xcode objective-c nsstring nstextview
nsstring ×1
nstextview ×1
objective-c ×1
xcode ×1