I am copying an NSMutableArray to a string. When I am displaying the string I am getting a “(” sign before the array items and the array entries are separated by a comma in between. I want to display the array entries line by line, and not by comma separated. How can I do this
Share
There are a number of ways to do this. If you just want to join the array with a new-line character, the easiest is to use
NSArray‘s -componentsJoinedByString: method. For example, to do exactly what you asked: