- +(NSString *)implode:(NSString *)split data:(NSArray *)array{
- NSString *result=@"";
- for (NSString *str in array) {
- if([result isEqualToString:@""]){
- result=str;
- }else{
- result=[NSString stringWithFormat:@"%@%@%@",result,split,str];
- }
- }
- return result;
- }
复制代码 |