<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<array>
<string>Title 1</string>
<string>Subtitle 1</string>
<string>image1.png</string>
</array>
<array>
<string>Title 2</string>
<string>Subtitle 2</string>
<string>image2.png</string>
</array>
</array>
</plist>
This is my Plist file for an app I am working on.
I am not sure on how to take the first string of many arrays to create an NSMutableArray with all the titles and again for the subtitles and image names.
My workaround at the moment is creating 3 separate Plist files for each type of string which can be a nuisance.
To answer your question while retaining the plist data structure, you could simply do something like the following:
However, I would advise you to use a structure like:
At which point you could use the more explicit code as follows: