开发者

iPhone storing large amounts of images

开发者 https://www.devze.com 2023-01-13 05:59 出处:网络
I have a large amount of images that correspond to records in a sqlite db. where should I store them? I have 3 versions of the same image - large, me开发者_开发技巧d, thumb sizes. (I don\'t want to st

I have a large amount of images that correspond to records in a sqlite db. where should I store them? I have 3 versions of the same image - large, me开发者_开发技巧d, thumb sizes. (I don't want to store them in the db table, but reference them instead from each record)

all the images have the same name - each small, med and large image files would all be called "1.jpg" for record 1 in the sqlite table etc... this is mainly because I'm using an image batch resizing program that retains the same file name and creates a new folder.

thanks for any help.


For my cached images, I stored them in TMP folder, you can access using NSTemporaryDirectory.

I don't know if it is good for your cases or if it is good in general but it works quite well

0

精彩评论

暂无评论...
验证码 换一张
取 消