텍스트 나누기1 [iOS 유용한 메소드] joined() 배열을 텍스트로 나눌때 편한 함수 "," , "-" joined()는 이런식으로 배열을 string으로 편하게 return 해주는 메소드이다. extension Array where Self.Element == String { /// Returns a new string by concatenating the elements of the sequence, /// adding the given separator between each element. /// /// The following example shows how an array of strings can be joined to a /// single, comma-separated string: /// /// let cast = ["Vivien", "Marlon", "Kim", "Karl"] /// l.. 2020. 5. 29. 이전 1 다음