我有以下String数组:
var stringArray:[String] = ["value1","value2","value3","value4"]
如何用另一个字符串替换索引2(“3”)的第三个String?
就那么简单:
原文链接:https://www.f2er.com/swift/320480.htmlstringArray[2] = "new string"