How can I change the place of the .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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming you have something like this in your code:
Try replacing
NSDocumentDirectorywithNSLibraryDirectory.I am not sure where and if you are allowed to write files there (except by using the sanctioned methods, of course).