I am trying to convert (or copy?) An NSMutableArray to an NSString. I think my problem is that I really don't understand the NSString structure. In my limited knowledge, the line might look like this: on iphone
take NSMutableStringand add each line of the array to the line
NSMutableString
as
string = [string appendString:[NSString stringWithFormat:"%@", [array objectAtIndex:i]]];
Try this code: -
NSString *string = [array componentsJoinedByString:@","];