azamsharp
azamsharp

Reputation: 20066

Convert NSArray containing NSString to NSString

So, I have an NSArray containing NSString. How can I convert the NSArray to NSString separating them by new line.

Upvotes: 0

Views: 444

Answers (1)

Chris Trahey
Chris Trahey

Reputation: 18290

Use componentsJoinedByString:

NSString *combinedString = [myArray componentsJoinedByString:@"\n"];

Upvotes: 14

Related Questions