¡@

Home 

2014/10/15 ¤U¤È 10:11:53

iphone Programming Glossary: my_struct

How to store custom objects with struct in Coredata

http://stackoverflow.com/questions/3492449/how-to-store-custom-objects-with-struct-in-coredata

this question You can wrap the struct in a NSData ie To encode with archiver coder encodeObject NSData dataWithBytes my_struct length sizeof my_struct forKey @ my_struct and to decode with archiver NSData data coder decodeObjectForKey @ my_struct.. wrap the struct in a NSData ie To encode with archiver coder encodeObject NSData dataWithBytes my_struct length sizeof my_struct forKey @ my_struct and to decode with archiver NSData data coder decodeObjectForKey @ my_struct data getBytes my_struct.. NSData ie To encode with archiver coder encodeObject NSData dataWithBytes my_struct length sizeof my_struct forKey @ my_struct and to decode with archiver NSData data coder decodeObjectForKey @ my_struct data getBytes my_struct length sizeof my_struct..