开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜