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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-23-2010, 07:55 AM   #1 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 2
Kalle Samuelsson is on a distinguished road
Question Best practice for HTTP Data Source

Hi!

I need some help regarding best practice for my first "real" app. It is a tab-based app with ListViews. These ListViews are loaded with contents from a HTTP Get-request to my webserver. ListView cells contains Title, Subtitle, CellImage and a description for the detailed view (when a row in a ListView is clicked). All and all it is quite similar to a RRS news reader.

My questions concern data storage for the result from the HTTP-request and the format in which to send the result.

1: Shall I make my webservice return a plist-file contaning the data when a app sends a request, because it is simple to store and work with plists in X-code?

2: Is there any advantage to return result as "regular" XML and parse the result in the app? And if so, how do I best (simple and effective) store the result between sessions when the app is used (plist? XML? SQLlite)? . I want the content to be persistent in the app in case it is launched without internet connection. It will however be refreshed/replaced if possible when the app is launched.

3: What is the best way to return images together with the result? Images is shown both in the ListViews (thumbs) and in the detailed view. Do I request each image file with a separate HTTP Get-request or shall I return them encoded like i.e Base64 (text) inside the result XML. Atleast the thumbnails needs to be persistent between app launches.

Iīm not asking for example-code here (unless there are tutorials for this), just pointers on how to plan my app. How would you do it? It is a simple app and I am still learning so please donīt make it to complex =D
Hope you have time to help me, Thanks!

/Kalle, Sweden
Kalle Samuelsson is offline   Reply With Quote
Reply

Bookmarks

Tags
http, listview

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: 341
5 members and 336 guests
freewind, HemiMG, lendo, Newbie123, PlutoPrime
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,894
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

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