Joining an Array of Strings
suggest changeTo combine an NSArray of NSString into a new NSString:
NSArray *yourWords = @[@"Objective-C", @"is", @"just", @"awesome"];
NSString *sentence = [yourWords componentsJoinedByString:@" "];
// Sentence is now: @"Objective-C is just awesome"
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents