Are there any shortcuts to (stringByAppendingString:
) string concatenation in Objective-C, or shortcuts for working with NSString
in general?
How about shortening stringByAppendingString
and use a #define:
#define and stringByAppendingString
Thus you would use:
NSString* myString = [@"Hello " and @"world"];
Problem is that it only works for two strings, you're required to wrap additional brackets for more appends:
NSString* myString = [[@"Hello" and: @" world"] and: @" again"];