Please share any sample class, i want to save custom whole object to NSUserDefault.
The easiest way I can think of would be to convert the object to a String using the toJSON function. Then save that String into the user defaults. When you retrieve the string you use ObjectMapper to convert it back to an object
Thanks a lot guru
Most helpful comment
The easiest way I can think of would be to convert the object to a String using the toJSON function. Then save that String into the user defaults. When you retrieve the string you use ObjectMapper to convert it back to an object