Re: Can I make an array of strings into one long string?
Re: Can I make an array of strings into one long string?
- Subject: Re: Can I make an array of strings into one long string?
- From: "John C. Randolph" <email@hidden>
- Date: Wed, 22 Aug 2001 13:26:22 -0700
On Wednesday, August 22, 2001, at 01:08 PM, Mark Wridt wrote:
This may seem simple, but can I make an arrya of
strings into one long string?
- (NSString *)componentsJoinedByString:(NSString *)separator
Constructs and returns an NSString that is the result of interposing
separator between the elements of the receiver's array. For example,
this code excerpt writes the path System/Developer to the console:
NSArray *pathArray = [NSArray arrayWithObjects:@"System",
@"Developer", nil];
NSLog("The path is /%@.\n",
[pathArray componentsJoinedByString:@"/"]);
-jcr
"This is not a book to be tossed aside lightly. Rather, it should be
hurled with great force." -Dorothy Parker