swift는 String에 트림 방법이 있습니까? swift는 String에 트림 방법이 있습니까? 예를 들면 다음과 같습니다. let result = " abc ".trim() // result == "abc" 의 시작과 끝에서 모든 공백을 제거하는 방법은 다음과 같습니다 String. (예는 Swift 2.0으로 테스트되었습니다 .) let myString = " \t\t Let's trim all the whitespace \n \t \n " let trimmedString = myString.stringByTrimmingCharactersInSet( NSCharacterSet.whitespaceAndNewlineCharacterSet() ) // Returns "Let's trim all the ..