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

View Single Post
Old 02-12-2009, 12:38 AM   #2 (permalink)
rendezvouscp
Registered Member
 
Join Date: Oct 2008
Posts: 53
rendezvouscp is on a distinguished road
Default

I don’t know what the overhead is, but I can presume it’s less efficient than the method I use in my app. Here are my suggestions:
-Retrieve all of the data from the database when the view loads. Don’t do it individually; make a select for all of the information you need.
-Store the information in an array or a dictionary. When the table is being loaded, have the cells refer to the array instead of making queries to the database.
-Create a new type of object for your data. Instead of handling the edit/delete from the table view, send messages to the object and handle the database “stuff” there.

Hopefully that’ll get you started on the right foot.
-Chasen
rendezvouscp is offline   Reply With Quote
 

» Advertisements
» Online Users: 437
16 members and 421 guests
brainspoon, dre, EmidoroSmibre, Evilelement, ilmman, iOS.Lover, iphonedevshani, Kieren Harrold, kikko088, LegionMD, monu_rastogi, pbart, QuantumDoja, Robiwan, Sami Gh, waterkamp
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,614
Threads: 94,086
Posts: 402,794
Top Poster: BrianSlick (7,990)
Welcome to our newest member, kurtroom
Powered by vBadvanced CMPS v3.1.0

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