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

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -