alexy13 alexy13 - 1 year ago 148
Objective-C Question

Convert NSArray to NSString in Objective-C

I am wondering how to convert an NSArray

to an string in Objective-C. An Applescript example is:

set the_array to {1,"Two", 3,4,5,6}
set the_array to the_array as string

Answer Source
NSString * result = [[array valueForKey:@"description"] componentsJoinedByString:@""];
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download