how to add concatenate multiple NSString in one String in iphone
问题 I have 5 String i want that they must be store in singe NSString all the values separate with | sign NSString *first=@"Ali"; NSString *second=@"Imran"; NSString *third=@"AliImran"; NSString *fourth=@"ImranAli"; NSString *fifth=@"Ali Imran Jamshed"; I want to all these in single NSString to store and all values separated by given sign. 回答1: NSArray *myStrings = [[NSArray alloc] initWithObjects:first, second, third, fourth, fifth, nil]; NSString *joinedString = [myStrings