Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
405 views
in Technique[技术] by (71.8m points)

objective-c - Objective-C中的快捷方式用于连接NSStrings(Shortcuts in Objective-C to concatenate NSStrings)

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...