Hi,
I'm having a problem with NSUser Defaults,
I'm doing a one-time set up of my app and I use this code to register what the NSUser Defaults thing should do:
Code:
setups = [[NSString alloc] initWithFormat:@"YES"];
setup.hidden = setups;
NSUserDefaults *stringDefault2 = [NSUserDefaults standardUserDefaults];
[stringDefault2 setObject:setups forKey:@"stringKey4"];
This works OK as button vanishes dutifully, but note that there is this warning on the second line:
Passing argument 1 of "setHidden:" makes integer from pointer without a cast.
But the button still vanishes, so it works?
I then call the string back using this method which receives the same warning as above
Code:
setup.hidden = [[NSUserDefaults standardUserDefaults] objectForKey:@"stringKey4"];
But the button does not get hidden, and I know it must be something to do with the warnings? Any help would be loved