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

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

Draw This
($0.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-20-2009, 10:51 PM   #1 (permalink)
cation007
Registered Member
 
Join Date: Jul 2009
Posts: 20
cation007 is on a distinguished road
Unhappy Confused with a basic idea

Hi,
I am confused with a basic idea.

I have a database and I want to load it and use it in my application.

Application uses navigation controller.

The problem is, when and where should I load the values from the database ?

in application delegate or rootviewcontroller ?

If I do it in rootviewcontroller, everytime I move between different tableviews, the variables get released and the database is loaded again and again.

If I do it in appDelegate, I dont know how to pass the values to the rootviewcontroller.


I want to read the database only once for this whole application.

How can I solve this problem?

How do ppl normally work with databases (i.e, when and where do they read from databases) ?

Thanks for replying.
p.s. Is my question not clear ?
cation007 is offline   Reply With Quote
 

» Advertisements
» Online Users: 612
10 members and 602 guests
Afrinux, Bryan1, drviii, Hamad, iamwayne5, jemicha, jon01, nguyenhieu129, Rynow, ThistleCoast
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 174,549
Threads: 93,727
Posts: 401,266
Top Poster: BrianSlick (7,954)
Welcome to our newest member, fgreg2692han
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:53 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.