标签:nsstring sar sse rate 分割 code array font nsarray
NSArray *arr = @[@"lnj", @"lmj", @"jjj", @"xcq"]; NSString *res = [arr componentsJoinedByString:@"*"]; NSLog(@"res = %@", res); 输出结果: lnj*lmj*jjj*xcq
NSString *str = @"lnj-lmj-jjj-xcq"; NSArray *arr = [str componentsSeparatedByString:@"-"]; NSLog(@"%@", arr); 输出结果: ( lnj, lmj, jjj, xcq )
标签:nsstring sar sse rate 分割 code array font nsarray
原文地址:http://www.cnblogs.com/xufengyuan/p/6636868.html