iOS: NSArray的方法componentsJoinedByString:

来源:互联网 发布:java的短息发送 编辑:程序博客网 时间:2024/05/21 10:40

- (NSString *)componentsJoinedByString:(NSString *)separator


example:



NSArray *pathArray = [NSArray arrayWithObjects:@"here", @"be", @"dragons", nil];


NSLog(@"%@",[pathArray componentsJoinedByString:@" "]);




原创粉丝点击