Not sure how to handle “Terminating app due to uncaught exception 'NSInvalidArgumentException'”
问题 I'm working on creating an app that uses a class I created myself, Entry , to store specific data in an array. However, I keep running into this error when I try to access one of the values stored in an Entry object. Every time I prompt the user to create one of these objects, it is added to "rawArray," which is in turn stored into [NSUserDefaults standardUserDefaults]. At these lines of code, the program crashes: Entry *currEntry = [[[NSUserDefaults standardUserDefaults] arrayForKey:@