iosswiftswift3plistproperty-list

Swift, save string in property list


I've a plist file named as "data.plist" like this: enter image description here

I have six arrays, and I also have 6 buttons and a text field. I would like to save the string in the text field to the correct array when I press the right button.


Solution

  • There are many approaches, here is one: