[IOS] - IOS UIView fadeOut & fadeIn, UIView animation
[self setFadeOut:self.view];
[self setFadeIn:self.view];
// Set Fade Out Pop
- (void) setFadeOut : (UIView *) target {
[target setAlpha:0];
[UIView animateWithDuration:Dialog_Animation_Delay
delay:0
options: UIViewAnimationOptionCurveEaseInOut
animations:^{
[target setAlpha:1];
}
completion:^(BOOL finished){
NSLog(@"Set Fade Out Call Back");
}];
}
// Set Fade In Pop
- (void) setFadeIn : (UIView *) target {
[target setAlpha:1];
[UIView animateWithDuration:Dialog_Animation_Delay
delay:0
options: UIViewAnimationOptionCurveEaseInOut
animations:^{
[target setAlpha:0];
}
completion:^(BOOL finished){
NSLog(@"Set Fade In Call Back");
}];
}