I have the following String Array:
var stringArray:[String] = ["value1", "value2", "value3", "value4"]
how can I replace for example the third String with index 2 ("value 3") with another string?
Simple as that:
stringArray[2] = "new string"
stringArray.count is less than the index you're attempting to replace the element at!