'UIView animation'에 해당되는 글 1건

  1. 2014.07.18 [IOS] - IOS UIView fadeOut & fadeIn, UIView animation

[IOS] - IOS UIView fadeOut & fadeIn, UIView animation

IOS ( Object-C ) 2014. 7. 18. 11:54
반응형

[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");

                   }];

}

반응형
: