iPhone SDK Tip & Trick #003: How do I Concatenate Two Strings Together?

Question:

How do I concatenate two strings together?

Answer:

NSString *string1 = @”Alpha”;
NSString *string2 = @”Omega”;

string1 = [string1 stringByAppendingString:string2];

Leave a Reply

Your email address will not be published. Required fields are marked *