CCUserDefault acts as a tiny database. You can save and get base type values by it. For example, setBoolForKey(“played”, true) will add a bool value true into the database. Its key is “played”. You can get the value of the key by getBoolForKey(“played”).
It supports the following base types: bool, int, float, double, string