Yes, this should be fine, but it may be application dependent. Most "normal" users will not dig into your Library / Preferences file. Therefore, if you are writing an application for the main audience (average to low technical knowledge), NSUserDefaults is a safe place. You must also consider the value of people's time. If your application costs 99 cents, then itβs more likely to buy it faster than cracking a prefs file. If your app costs $ 99, there is an incentive for some people to look for hacks.
So, if you are writing a super expensive application or an application for an audience of hackers / developers, you may want to save the result in key fobs or something safer.
I personally used the simple "hasUpgraded" BOOL stored in NSUserDefaults and never experienced any problems.
melsam
source share