Possible Duplicate:
How do I concatenate strings in Objective-C?
Hello,
I am retrieving 10 separate strings from an XML parser. I want to append all the strings together. I checked for string concatenation in Obj-C and tried the below code, but it doesn't work as expected. Every time it overwrites with the new string.
NSString *newstring; // Global variable
[newstring stringByAppendingString:newStrGotFromXML];
Could someone guide me to resolve this?
Thank you!