tipsywacky
tipsywacky

Reputation: 3464

How to save files that doesn't allow user to access the data?

Okay, I have this file data.json to store some persistent data and want to be able to change and store its state even the app terminated. So I want it to be able to store a nested NSArray and doesn't allow user to have access to it.

I think sandbox or supporting file allow users to access the file through itunes. Correct me if I'm wrong. What are the options I have here? Thanks in advance.

Upvotes: 0

Views: 38

Answers (1)

jnix
jnix

Reputation: 480

You can add encryption in between while saving array if it is too confidential.or you can go with NSUserDefauls which provide secure storage of data - you can go with this if your data is not heavy.

for more details you can refer my THIS answer it is relevant to your problem.

Upvotes: 1

Related Questions