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

Popular posts from this blog

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

Hard vs. Soft Water: What's The Difference?

The Ten Most Livable Cities In The World