Skip to content

Instantly share code, notes, and snippets.

@hanksudo
Created February 10, 2012 06:55
Show Gist options
  • Save hanksudo/1787282 to your computer and use it in GitHub Desktop.
Save hanksudo/1787282 to your computer and use it in GitHub Desktop.
How to join NSArray elements into an NSString?
NSArray *args = [[NSArray alloc] initWithObjects:@"Apple", @"iOS", @"5.1", nil];
NSLog(@"%@", [args componentsJoinedByString:@" "]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment