Well first of all, it's just wrong what you are doing. You shouldn't put a lot of information inside your NSUserDefaults
. As for the issue:
NSData *incomeObjectData = [NSKeyedArchiver archivedDataWithRootObject:incomeObject];
Your GelirObject
doesn't comply with the NSCoding
protocol. That's the reason your app is screaming. Just implement the required methods initWithCoder:
and encodeWithCoder:
.