Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

awestruk

macrumors newbie
Original poster
May 7, 2010
1
0
Hi,

I am writing an app that essentially will have a list of animals, their descriptions(number of limb, size, color) and 1-3 pictures each.

The user will then be able to browse or query these animals and view the results.

2 questions:
-Would you consider sqlite appropriate for this? If so, I would still store all the photos in resources and then for each animal in the db I would store the photo filename so it could be opened right?
-If I end up having 100-300 photos, would this be too much? would they have to be accessed from the internet? What is the best photo format for the iPhone?

Thanks,

Awestruk
 
For the first question; that is the common accepted method.

Your second part is a matter of math and optimization. What is the average file size going to be, after you have optimized it, times the number of pictures gives you how much space you'll need for them. Does that combined with the size of you app make sense. A 2GB app probably doesn't make sense, but 20-30MB is likely very acceptable. I don't know if Apple has placed any size limits on apps.

Remember too, that it is bad form to load all of your pictures in memory, because of runtime memory constraints. So if you have a view of all the images, you'll have to optimize that too.

I'm sure a similar thread regarding number 2 was done in the last few weeks or so. Hopefully someone who remembers that can point to it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.