开发者

IPhone .sqlite file place

How can I change the place of the 开发者_JAVA百科.sqlite file in my directory structure. Now it is in the Documents, but I want it to be in the Library/Preferences. Can you help me please?


Assuming you have something like this in your code:

[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];

Try replacing NSDocumentDirectory with NSLibraryDirectory.

I am not sure where and if you are allowed to write files there (except by using the sanctioned methods, of course).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜