I have an NSDictionary in which I wanted to store data in my main data model. How can i do this?
NSDictionary
Set the Transformable attribute, and it will automatically convert it to and from NSData. No need to manually archive, as in another answer.
Use NSKeyedArchiver and save it in the data field in your database:
NSData *data = [NSKeyedArchiver archivedDataWithRootObject:yourDictionary];
Source: https://habr.com/ru/post/909480/More articles:How to make the reverse "range", i.e. Create a compact range based on a set of numbers? - pythonLinux file command: what does SYSV mean? - linuxhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/909477/how-do-i-add-loggingproperties-to-the-classpath-of-an-eclipse-project&usg=ALkJrhiRulTZ0lZQRARQEDNzSELeN5wQnwAlgorithm for connecting all points with a minimum total distance - algorithmA tool for automatically creating PHPUnit tests? - phpProcessing a multidimensional JSON array using PHP - jsonSearch tutorials and load balancing information between threads - multithreadingAndroid 3.1 / Galaxy Tab / VideoView will not play - androidIOS leak detection issue with xCode 4.3 - iosjQuery Flot Tick / Date Alignment - javascriptAll Articles