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

Saturday, December 6, 2008 12:00
Posted in category iPhone SDK, Tips & Tricks

Question:

How do I concatenate two strings together?

Answer:

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

string1 = [string1 stringByAppendingString:string2];

You can leave a response, or trackback from your own site.

3 Responses to “iPhone SDK Tip & Trick #003: How do I Concatenate Two Strings Together?”

  1. Ticket-Directory says:

    January 8th, 2009 at 3:17 am

    Thanks buddy this really helped !

  2. Aoobi says:

    September 22nd, 2009 at 9:38 am

    very useful advice for app dev. thanks

  3. HAL says:

    October 15th, 2009 at 4:03 am

    Really Nice Site.

Leave a Reply