I have a class which implements ˚ protocol and has the property netAbsAmount. I decided to remove it but now I am getting the following error:
[<Person 0xa37b6b0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key netAbsAmount.
I think I understand what is wrong but I don't know how to fix it. I am changing my model but it has to work with previous data. So, the old data would have property netAbsAmount
but the new model does not. In the initWithCoder
method, the netAbsAmount
property is not set anyways so I don't see what the problem is. In other words, that is a property that is not used previously and so is not encoded in encodeWithCoder
during serialization and not initialized at initWithCoder
during deserialization.
Setting breakpoints and walking through, the crash occurs after viewWillAppear
but before cellForRowAtIndexPath:
How do I fix this?
Thanks.