I have to store a custom class object to Coredata. The problem is my custom class contains structs,enum etc.I tried following method.
-(void)encodeWithCoder:(NSCoder *)encoder .
But am getting this error
[NSKeyedArchiver encodeValueOfObjCType:at:]: this archiver cannot encode structs'
What is the best practice to store this object to Coredata. Please help me.