The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 12-26-2008, 05:44 PM
What's Jailbreak?
 
Join Date: Mar 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Help with SQLite in a very basic App

I am used to programming for the web, so doing an iPhone app has been quite challenging for me, and I have been looking over Apple's "SQLite Book List" sample code, but can't seem to figure out how to do what I want in the app I am working on. The app in its current form has a label on the front view, a settings button the flips the view over to a view where you can enter a title and then press the button and it flips back over, updating the label on the front view. I want to be able to save this title into the database so it will load when the app is reopened. It seems very simple, and I am sure it is, but I can't figure out how to get it to work. I have attached the code folder, any help would be greatly appreciated!
Attached Files
File Type: zip iCountdown.zip (1.43 MB, 17 views)
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2  
Old 12-29-2008, 06:02 PM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 2.2.0
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,231
Thanks: 45
Thanked 202 Times in 162 Posts

Is there a particular reason you want to use a SQLite database for this?

Cocoa has a built-in framework for this sort of thing (NSUserDefaults) that makes it easy to save your state in a dictionary, update as needed, and load on startup with default values.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3  
Old 01-04-2009, 08:20 PM
What's Jailbreak?
 
Join Date: Dec 2007
Posts: 25
Thanks: 3
Thanked 1 Time in 1 Post

yes NSUserDefaults are the way to go on this. Theres actually a tutorial on it on the internet doing EXACTLY what you need. its on the Icode blog website
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion

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



Go to Top
ModMyI

All times are GMT -6. The time now is 10:25 AM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top