Hi all, please could you help me with this.
For my high school computing class, I have chosen to build a Math revision application using the iPhone SDK. Having never really used Obj-C before, i'm a little syntactically challenged. The program will consist of two parts: The multiple choice quiz part (which I have just completed) and actual pre-made revision notes that the user can view (what I need help with).
Due to the complex symbols and graphics involved in much of the notes I have come to the conclusion that loading the notes as compressed .jpg images seems like the best course of action.
I have read up on how to build an XML / playlist driven 'drill down app', where the UITableView is populated through XML and thus easily amended. However I want to be able to load a locally stored image into a UIImageView subview of the parent TableView.
Of the tutorials and sample documentation I have read, I cannot find a way of loading and image from a local folder [containing images copied into the project]. Many of the tutorials I have come across load images through "imageURL" from the web, since this app is aimed at teenagers who tend to have iPod Touches rather than iPhones, the application must run offline.
Now I need to find the way to point to an image's directory from an XML playlist and then load the referenced image in a UIImageView. Ideally I would like to store all the images in a folder like: Resources\ Images\ example.jpg
Possibly I could use this sort of XML:
<plist version="1.0">
<dict>
<key>Rows</key>
<array><dict>
<key>Title</key>
<string>Arithmetic</string><key>Children</key>
<array>
<dict>
<key>Title</key>
<string>Level 1</string>
<key>Children</key><array>
<dict>
<key>Image</key>
<string>1.jpg</string>
</dict>
</array>
</dict>
</array>
</dict>
</array>
</dict>
</plist>
From what I understand, I can get my relevant implementation file to look at the <key> tags and use an IF statement to tell the program to look to Resources\Images\… if it sees the key "Image".
I think this is all possible, by I haven't been doing this for long and I'm still a little shaky with the Syntax. If anyone here could offer a little bit of help, it would be amazing. I'm still not even sure XML and local directories are the right course of action, as some of my reading suggests SQLite + BLOBs might be the way forward. Any tips or suggestions would be greatly appreciated.
Thanks,
J