ios - Swift 2D string array declaration and access values -
i try access 2d string array values couldn't whatever did. can create 2d string array this,
var myarray: [[string]] = []
and put datum inside firebase. can check values print(myarray)
can't reach values this, myarray[0][3]
i need reach each rows , colums. had read apple's documents unfortunately, didn't find solution. how can in swift?
var myarray : [[string]] = [] myarray = [["manny", "moe", "jack", "rumplestiltskin"]] let name = myarray[0][3] // "rumplestiltskin"
one counterexample sufficient disprove hypothesis.
Comments
Post a Comment