How to merge two arrays in a plist?
I have a plist with two string arrays. I want to merge these two arrays. I tried selecting all the strings in one array and copying to the other, but I cant select multiple items. I don't want to do this prog开发者_JAVA技巧rammatically. I'm on a Mac using xcode. Any thoughts?
Just edit the PList files as text (context menu, "Open as plain text file" or "Source code file") and copy the relevant items in.
Save the plist in XML format if it isn't already, then open it as text. If you understand XML, it's pretty straightforward to move all the string nodes from one array to the other, then just remove the unwanted array node.
精彩评论