The console tells you the whole problem. Your object Assignmentdoes not implement a methodinitWithCoder:
'NSInvalidArgumentException', reason: '-[Assignment initWithCoder:]: unrecognized selector sent to instance 0x5f04090'
KeyArchiver will call your class to launch a new object based on the decoding data. You have to use[decoder objectForKey:YOUR_KEY];
source
share