Trying to save button state as hidden when navigating off the view controller.
under IBAction
btnonce.hidden = YES;
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setValue:Act1Button.hidden forKey:@"isHidden"];
Calling it in ViewDidLoad
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
btnonce.hidden = [userDefaults valueForKey:@"isHidden"];
I'm getting the error: Implicit conversion of "BOOL" (aka signed char) to ID is disallowed with ARC
How to rectify this?