關于join
為使用的是Xcode 7.1為什么如視頻中一樣,調用join方法會報錯 ?“join is unavaliable:call the 'joinWhithSeparator()' method on the sequence of elements ”
為使用的是Xcode 7.1為什么如視頻中一樣,調用join方法會報錯 ?“join is unavaliable:call the 'joinWhithSeparator()' method on the sequence of elements ”
2015-11-30
舉報
2015-12-02
Xcode 7.1 中是這么用的
var res=["welcome", "to", "learn", "ios", "programming"]
var ss="-"
res.joinWithSeparator("-")
輸出結果是?"welcome-to-learn-ios-programming"