I have an NSMutableArray of NSString objects. How would I make an NSString that consists of all the elements in that array joined together with semicolons in between?
For example:
array = "hello","hi","bye",nil;
output = "hello开发者_StackOverflow中文版;hi;bye";
NSMutableArray *array = [NSMutableArray arrayWithObjects:@"hello", @"hi", @"bye", nil];
NSString *output = [array componentsJoinedByString:@";"];
精彩评论