I am completely new in swift and iOS developing. I want to initialize this array
I defined the array like this when my class starts
var i = 0
var ArrayTitle = [NSString]()
and then I need to initialize it in one of the functions like this
let ArrayTitl[i] = "text"
and I checked it even like this but the error is same
let ArrayTitl[0] = "text"
but it has this Error
Cannot assign to immutable expression of type '[Int]'
Appreciate any help. thanks