- A quick and dirty way to get it done is here.....
var array = [["Chinese"],["Italian"],["Thai"]]
cell.namelabel.text = array.string = array[0][0]
- One can also iterate using for-in over the Array of Arrays (ie. array) here and access them but thats just one way to do it.
- One can also try to fetch all the values in the array to a single dimension array, so the access gets easier if thats the motive of the code.
var array = [["Chinese"],["Italian"],["Thai"]]
var valArray: [String] = []
for value in array
{
for innerValue in value
{
valArray.append(innerValue)
}
}
print(valArray)