Are there any shortcuts to ( stringByAppendingString:
) string concatenation in Objective-C, or shortcuts for working with NSString
in general? (在Objective-C中是否存在( stringByAppendingString:
字符串连接的快捷方式,或者通常使用NSString
快捷方式?)
For example, I'd like to make: (例如,我想做:)
NSString *myString = @"This";
NSString *test = [myString stringByAppendingString:@" is just a test"];
something more like: (更像是:)
string myString = "This";
string test = myString + " is just a test";
ask by typeoneerror translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…