swift - Array Name being described as a String -


i have multiple arrays , want choose 1 main array. want main array described string. how can name new array using stationid string , directionid string?

    let farbhof1 = ["hi","some","strings"]      var stationid = "farbhof"     var directionid = "1"  destviewcontroller.tableviewarray = "\(stationid)\(directionid)" 

you cannot in swift. variable names need known @ compile time, cannot calculated @ runtime.


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? -