Vote count:
0
I see some questions for multidimensional arrays and two dimensional arrays but none of them show how to correctly implement it.
I have a todo list where I have a checkbox in the cell. Currently I'm storing the todo item in an array and the bool value in another array...My app is starting to get big so I'd prefer to have them both in one array.
How do I correctly do it?
var cellitemcontent = [String:Bool]()
if this is the correct way then I get errors at
cellitemcontent.append(item) //String: Bool does not have a member named append
So I'm assuming this is how to declare a Dictionary not a 2D array... Thank you.
asked 17 secs ago
2D empty array in swift
Aucun commentaire:
Enregistrer un commentaire