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" 刪除前導和尾隨空格改變案例