dictionary - dict.setObject does not work for own struct -
what's needed code running?
dict.setobject(greplacements, forkey: "greplacements")
i created own plist within dictionary. load , save different types of data. when try save own struct (s. below). error message:
"cannot invoke "setobject" argument of type ('[fromto], forkey: string)'
definition:
struct fromto { var = string() var = string() } var greplacements : [fromto] = [ fromto(from: "x", to: "y") ]
any idea?
Comments
Post a Comment