swift2 - Cannot invoke `join` with an argument list of type (String, [String]) in Swift 2.0 -
var specializationtitles = ["a", "b", "c", "d"] let outputstring = join(" / ", specializationtitles) got error:
cannot invoke
joinargument list of type(string, [string])
how solve this?
let separator = " / " let outputstring = separator.join(specializationtitles) with xcode7beta6:
specializationtitles.joinwithstring(" / ") with xcode7 release version:
specializationtitles.joinwithseparator(" / ")
Comments
Post a Comment