How do I concatenate strings in Objective-C?
Posted
by Typeoneerror
on Stack Overflow
See other posts from Stack Overflow
or by Typeoneerror
Published on 2009-02-04T06:26:19Z
Indexed on
2010/06/10
9:52 UTC
Read the original article
Hit count: 437
objective-c
|string-concatenation
Are there any shortcuts to (stringByAppendingString:
) string concatenation in Objective-C or shortcuts for working with NSString or other objects in general?
e.g. I'd like to make this:
NSString *myString = @"This";
NSString *test = [myString stringByAppendingString:@" is just a test"];
something more like this:
string myString = "This";
string test = myString + " is just a test";
© Stack Overflow or respective owner