arrays - cannot subscript of type [String] -


i error on:

        cell.naamitem = vrageninformatie[indexpath.section][indexpath.row][0] 

i have in same class:

    var vrageninformatie: [[[string]]] = [[[]]] 

and how array looks like:

var vrageninformatie: [[[string]]] = [[["spelletjeskamer",""],["keuken",""],["garage",""],["binnenplaats",""],["zitkamer",""],["slaapkamer",""],["studeerkamer",""],["eetkamer",""],["badkamer",""]],[["de wit",""],["pimpel",""],["blaauw van draet",""],["roodhart",""],["groenewoud",""],["van geelen",""]],[["loden pijp",""],["pistool",""],["engelse sleutel",""],["dolk",""],["touw",""],["kandelaar",""]]] 

i don't no problem here neither know subscript means

could give advise?

i bet naamitem uilabel or that, , forgot append '.text'. if theory true, code should this:

cell.naamitem.text = vrageninformatie[indexpath.section][indexpath.row][0] 

in other case naamitem not uilabel, uitextview or uitextfield, should make sure naamitem of type string.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -