This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
// gcc -framework Foundation XX.m -o XX.exe | |
int main(int argc, const char *argv[]){ | |
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; | |
// STEP1 普通にjoinする(空の要素がない場合) | |
NSArray *array_part_a = [NSArray arrayWithObjects:@"1", @"2", @"3", @"4", @"5", @"6", nil]; | |
NSString *string_a = [array_part_a componentsJoinedByString:@" / "]; |