Saving Setting Option (Local or Database)

Hi,

I am adding various intro pop up screens / messages to my app that explain various parts of the app... such as:


==============================

WELCOME

This section allows you to... etc.

[ ] don't show this again

==============================


User's can click the 'don't show this again' option and the setting will be saved,so that they don't see the message again, however i am trying to decide where to save this setting.

Which do you think is a better method?

A - save the setting to locally within the app (quicker access, but would future updates cause problems)

B - save the setting to the user's profile in the database (slower, but would not effect future updates)


Any advice on this would be greatly appreciated, thank you.
oo7mlAsked:
Who is Participating?
 
KRUNAL TAILORFreelance Mobile DeveloperCommented:
Hi oo7ml,

You may use the " NSUserDefaults class". Here is the class ref: https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSUserDefaults_Class/index.html

You can save settings and properties within application, saved data will persist through application sessions.
Here is tutorial: http://code.tutsplus.com/tutorials/ios-sdk-working-with-nsuserdefaults--mobile-6039

Thanks & Regards,
Krunal T. Tailor
0
 
oo7mlAuthor Commented:
Thanks. Woukd updating the app in the future every affect the data saved locally?
0
 
KRUNAL TAILORFreelance Mobile DeveloperCommented:
No, it want affect the data until you remove and install again.
Update is not cause any problem. I had already used in my apps to save data similar way.
0
 
oo7mlAuthor Commented:
Excellent, thank you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.