Question: 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 SetAnimationDidStopSelector:@selector(nowHideThisSiteButton:finished:context:)];
  [UIButton setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:YES];
  ((UIView *)sender).hidden = YES;
  [UIButton commitAnimations];
}

```

and the stop selector below:

```
-(void)nowHideThisSiteButton:(NSString *)animationID finished:(BOOL *)finished context:(void *)context {
  visitSite.hidden = YES;
}

```

I've also tried `[visitSite setHidden:YES];` and that fails as well. *ALSO* I've noticed that the setAnimationDidStopSelector does not get called at all.

Also, visitSite (when NSLogged) equals:

```
<UIButton: 0x1290f0; frame = (0 0; 320 460); opaque = NO; autoresize = RM+BM; layer = <CALayer: 0x1290f0>>

```

visitSite.hidden (when NSLogged) equals: `NULL`

Any more ideas? :(

Answer: 
you could try [visitSite removeFromSuperview];
Have you double-checked the bindings in Interface Builder? Did you remember to connect the button to the controller?

Try putting a breakpoint on `visitSite.hidden = YES;` and make sure that `visitSite` isn't null or set to something unexpected.