How to convert NSArray into NSString

iphone, nsarray, nsstring, objective-c

Solution

Bearing in mind that you don't say what's in the NSArray, you can do this:

NSArray *arr = [NSArray arrayWithObjects: @"foo", @"bar", @"baz"];
[arr componentsJoinedByString: @","]

Problem

How to convert NSArray into NSString in objective-c?

Original source

Related problems