ios - Multidimensional Array [String , UIImage] (Swift) -
i'm new ios programming. i'm trying create array store items have parsed. parse items string(text), , image(pffile).
im trying figure out how create array.
would declared as:
var completearray: [string:[nsdata]] = []
////////////////////////
okay ive updated struct
struct brandcollection {
var brandtext:[string] = [string]() var brandimage:[uiimage?] = [uiimage]() }
you should create struct hold each of entries , create array of these structs -
struct branditem { var brandtext:string var brandimage:uiimage } var completearray: [branditem] = []
Comments
Post a Comment