0

Is it is necessary to copy my local Database.sqlite to Documents directory in ios environment? If Yes .,then please explain or refer link..

2
  • ios environment? You should add .sqlite to your project, and make code to copy that into your NSDocumentDirectory. Here's a good example of it. Commented Oct 16, 2012 at 7:19
  • Is it you or someone else asking this question? If it's you, then why did you put the entire text in a quote? Commented Oct 16, 2012 at 7:24

1 Answer 1

3

You need to copy it because if you put it on your app main bundle, it will be readOnly, and that's not what you want. So you must copy your .sqlite in Documents directory, or whatever directory where you have write permission.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.