Let's say I saved data to disk like this:
[[NSUserDefaults standardUserDefaults] setObject:[NSKeyedArchiver archivedDataWithRootObject:theArray] forKey:@"savedArray"];
How can I erase that from disk?
Let's say I saved data to disk like this:
[[NSUserDefaults standardUserDefaults] setObject:[NSKeyedArchiver archivedDataWithRootObject:theArray] forKey:@"savedArray"];
How can I erase that from disk?
Try this.
[[NSUserDefaults standardUserDefaults] removeObjectForKey:@"savedArray"];