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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -