How would I go about turning the first button back on from the second button [self firstButton:sender.enabled = Yes];
only works to turn it off. Which the compiler gives me a warning about turning the button off that way. So if there is a better way to turn it off from the second button to please let me know how to turn it on and off..
-(IBAction)firstButton:(UIButton *)sender{
if(firstButton is clicked){
//Turn firstButton off
((UIButton *)sender).enabled = NO;
}
}
-(IBAction)secondButton:(UIButton *)sender{
if(secondButton is clicked)
{
//Turn firstButton BACK ON?
[self firstButton:sender.enabled = Yes];
}
}
Thanks!!