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

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -