Cannot hide a UIButton
- by Neurofluxation
Hey again,
I have the following code:
visitSite.hidden = YES;
For some reason, when I click a UIButton and call this piece of code, the visitSite button does not hide.
The code is within this block:
-(IBAction)welcomeButtonPressed:(id)sender {
[UIButton beginAnimations:@"welcomeAnimation" context:NULL];
[UIButton setAnimationDuration:1.5];
[UIButton setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:YES];
((UIView *)sender).hidden = YES;
[UIButton commitAnimations];
visitWebsite.hidden = YES; //THIS DOESN'T WORK!
}
Help!!