Such as both a boolean 开发者_JAVA百科and an integer? Thanks for your help!
Yes. NSUserDefaults simply operates like an NSDictionary, but with a few more convenience methods.
Don't forget to synchronize the data you set after you're done.
Sure! Here are the setter functions for NSUserDefaults
:
– setBool:forKey:
– setFloat:forKey:
– setInteger:forKey:
– setObject:forKey:
– setDouble:forKey:
– setURL:forKey:
精彩评论