Objectmapper: How to save mappable object to nsuserdefault??

Created on 16 Dec 2015  路  2Comments  路  Source: tristanhimmelman/ObjectMapper

Please share any sample class, i want to save custom whole object to NSUserDefault.

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

All 2 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VictorAlbertos picture VictorAlbertos  路  3Comments

jperera84 picture jperera84  路  4Comments

YunyueLin picture YunyueLin  路  3Comments

AashishSapkota picture AashishSapkota  路  3Comments

Dbigshooter picture Dbigshooter  路  4Comments