Right off the bat on the first line of didFinishLaunchingWithOptions in my AppDelegate, I am trying to set the secret like so:
[NSUserDefaults setSecret:@"test"];
but I am getting a crash, "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSUserDefaults setSecret:]: unrecognized selector sent to class 0x1dbb830' "
Not sure why. It appears that the compiler is trying to find the setSecret method in the default NSUserDefaults. I have indeed imported the appropriate header file. Any ideas? I am using iOS6.
Hey,
Right off the bat on the first line of didFinishLaunchingWithOptions in my AppDelegate, I am trying to set the secret like so:
but I am getting a crash, "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSUserDefaults setSecret:]: unrecognized selector sent to class 0x1dbb830' "
Not sure why. It appears that the compiler is trying to find the setSecret method in the default NSUserDefaults. I have indeed imported the appropriate header file. Any ideas? I am using iOS6.