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(" / ")
1.4m articles
1.4m replys
5 comments
57.0k users