开发者

Consideration: Leave Read-only DB in Application resourcePath or copy to documents/library folder

开发者 https://www.devze.com 2023-01-31 23:49 出处:网络
My App uses a read-only sqlite db. Now I am unsure, if it makes any sense to copy the db to the documents or library folder on the iphone or to leave it in the applications bundle ([[NSBundle mainBund

My App uses a read-only sqlite db. Now I am unsure, if it makes any sense to copy the db to the documents or library folder on the iphone or to leave it in the applications bundle ([[NSBundle mainBundle] resourcePath]).

Are there known issues with leav开发者_开发知识库ing the db in the resourcePath besides that it can only be used read only (e.g. is unpacking data an issue as the app itself is stored as a zip container and therefore frequent access is not recommended...)?

(There is a similar unanswered question, but my main point is the access of the db in the resource folder, not manipulating the resource folder.)


None I'm aware of. I would let the DB in the resource folder, save some space and prevent iTunes to include that db in every backup.

0

精彩评论

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