Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tutorials > Tutorial Requests

Reply
 
LinkBack Thread Tools Display Modes
Old 09-24-2009, 03:51 PM   #1 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 1
Smile XML and loading local images, Help please

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
jolshwar is offline   Reply With Quote
Reply

Bookmarks

Tags
images, local, playlist, sdk, xml

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 277
20 members and 257 guests
ADY, AragornSG, BrianSlick, Dani77, Dattee, dre, glenn_sayers, HDshot, HemiMG, JasonR, karlam963, nobre84, prchn4christ, Rudy, spiderguy84, themathminister, tomtom100, viniciusdamone, vogueestylee, vvenkatachallam
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,884
Threads: 89,229
Posts: 380,763
Top Poster: BrianSlick (7,129)
Welcome to our newest member, karlam963
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:19 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0