Obj-C combining strings

Posted by Brodie4598 on Stack Overflow See other posts from Stack Overflow or by Brodie4598
Published on 2010-04-04T03:07:07Z Indexed on 2010/04/04 3:13 UTC
Read the original article Hit count: 397

this must be such a simple problem but can someone tell me why this doesnt work:

visibilityString1 = @"the";
visibilityString2 = @"end";

visibilityString = (@"This is %@ %@", visibilityString1, visibilityString2);

Every time I try to combine strings this way, it will only return the second string so what I get is:

end

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about string-manipulation