iOS字符串转数组,数组转字符串
NSString *testString = @"1,2,3,4,5";
NSArray *testArray = [testString componentsSeparatedByString:@","];
NSLog(@"testArray=========%@",testArray);
NSString *tempStr = [testArray componentsJoinedByString:@"-"];
NSLog(@"tempStr===========%@",tempStr);
转载请注明出处:http://blog.csdn.net/chen_gp_x
还没有评论,来说两句吧...