Created
February 10, 2012 06:55
-
-
Save hanksudo/1787282 to your computer and use it in GitHub Desktop.
How to join NSArray elements into an NSString?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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