- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
[self fadeOut];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (IBAction)buttonPush:(id)sender
{
NSLog(@"Push The Button");
}
- (void)fadeOut
{
[UIView beginAnimations:@"hideOverlayButtonFadeOut" context:nil];
[UIView setAnimationDuration:1.5];
[UIView setAnimationCurve:UIViewAnimationCurveEaseOut];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(fadeIn)];
[self._button setAlpha:0.0];
[UIView commitAnimations];
}
- (void)fadeIn
{
[UIView beginAnimations:@"hideOverlayButtonFadeIn" context:nil];
[UIView setAnimationDuration:1.5];
[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(fadeOut)];
[self._button setAlpha:1.0];
[UIView commitAnimations];
}