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 05-17-2011, 01:22 PM   #1 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 16
Mystery is on a distinguished road
Question Database Storage iPhone Problem

Hi, I am new to the forum and very new to iPhone development as well. My knowledge is form reading Beginning iPhone development by Apress.

What I am trying to do, is i want a database that has all the different car models and their manufacturers MPG (doesn't change). What i want the program to be able to do is for the user to select the car model, and then the program will understand what the user selected and output the proper MPG for the car.

I am also looking for another database that I will be able to write to. This database will hold a lot of values and will constantly be added to, however there is no specified length.

What would be the best way to do these two different databases? All help is appreciated.
Mystery is offline   Reply With Quote
Old 05-17-2011, 04:02 PM   #2 (permalink)
Registered Member
 
DeeJay_CRO's Avatar
 
Join Date: Feb 2011
Location: Osijek, Croatia
Posts: 64
DeeJay_CRO is on a distinguished road
Default

Quote:
Originally Posted by Mystery View Post
Hi, I am new to the forum and very new to iPhone development as well. My knowledge is form reading Beginning iPhone development by Apress.

What I am trying to do, is i want a database that has all the different car models and their manufacturers MPG (doesn't change). What i want the program to be able to do is for the user to select the car model, and then the program will understand what the user selected and output the proper MPG for the car.

I am also looking for another database that I will be able to write to. This database will hold a lot of values and will constantly be added to, however there is no specified length.

What would be the best way to do these two different databases? All help is appreciated.
I do not understand why two databases? Shouldn't be enough only one? With several tables, if needed...
DeeJay_CRO is offline   Reply With Quote
Old 05-17-2011, 04:57 PM   #3 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

SQLite or maybe just xml if the data is "static" and user should not change it......
__________________
dany_dev is offline   Reply With Quote
Old 05-17-2011, 07:20 PM   #4 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 16
Mystery is on a distinguished road
Default

Quote:
Originally Posted by DeeJay_CRO View Post
I do not understand why two databases? Shouldn't be enough only one? With several tables, if needed...
These two are completely separate. One database is just going to be read from (static) which gives the manufacturer's MPG of the car. Another one is recording start time/end time, velocity, acceleration of the car. This will be recorded for each time the user takes a trip.

I was looking into property lists and iphone core data. Would the property list be good for a "static" database and the iphone core data for the other database?
Mystery is offline   Reply With Quote
Old 05-18-2011, 03:08 AM   #5 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

Quote:
Originally Posted by Mystery View Post
These two are completely separate. One database is just going to be read from (static) which gives the manufacturer's MPG of the car. Another one is recording start time/end time, velocity, acceleration of the car. This will be recorded for each time the user takes a trip.

I was looking into property lists and iphone core data. Would the property list be good for a "static" database and the iphone core data for the other database?
as said, you can use plist or xml or json, but you should prefer SQLite or Core Data

Core Data Tutorial: Getting Started | Ray Wenderlich

iPhone SDK Tutorial: Reading data from a SQLite Database | dBlog.com.au
__________________
dany_dev is offline   Reply With Quote
Reply

Bookmarks

Tags
database, iphone, iphone core data, plist

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: 354
7 members and 347 guests
doffing81, dre, iOS.Lover, Kirkout, MikaelBartlett, PlutoPrime, Wikiboo
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,663
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, LezB44
Powered by vBadvanced CMPS v3.1.0

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