var specializationTitles = ["a", "b", "c", "d"] let outputString = join(" / ", specializationTitles)
got an error:
Cannot invoke join with an argument list of type (String, [String])
join
(String, [String])
How to solve this?
let separator = " / " let outputString = separator.join(specializationTitles)
With Xcode7beta6:
specializationTitles.joinWithString(" / ")
With Xcode7 release version:
specializationTitles.joinWithSeparator(" / ")
2.1m questions
2.1m answers
60 comments
57.0k users