Are there any shortcuts to (stringByAppendingString:
) string concatenation in Objective-C, or shortcuts for working with NSString
in general?
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";
转载于:https://stackoverflow.com/questions/510269/shortcuts-in-objective-c-to-concatenate-nsstrings