I will be storing a few strings (maybe 10-20). I am not sure if I should use NSUserDefaults to save them, or write them out to a plist. What is considered best practice? NSU
iOS ultimately stores all NSUserDefaults
data to a plist file. So it will not affect the performance if that is your concern. I personally prefer using NSUserDefaults
for small data and plist for a relatively large set of data.
Note: Never store any sensitive information in NSUserDefaults
as anyone can see that data.