I would like to loop through an array strings and add them to an NSString in the following way:
NSMutableArray *emailsArray = [[NSMutableArray alloc] initWithObjects:@"One", @"Two", @"Three", nil];
for (id email in emailsArray {
NSString *emails = ??;
}
So the final NSString should be the following:
NSString *emails = @"One|Two|Three";
Use
[emailsArray componentsJoinedByString:@"|"]for this.Sample:
Here you’ll have
emails = @"One|Two|Three".