StackOverflow 文档 Objective-C Language 教程 NSString 加入一串字符串 加入一串字符串 Created: November-22, 2018 将 NSArray 的 NSArray 组合成一个新的 NSString: NSArray *yourWords = @[@"Objective-C", @"is", @"just", @"awesome"]; NSString *sentence = [yourWords componentsJoinedByString:@" "]; // Sentence is now: @"Objective-C is just awesome" 删除前导和尾随空格改变案例