uiview 的transitionWithView 方法使用

-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    [UIView transitionWithView:_imageViewFirst duration:1.0f options:UIViewAnimationOptionTransitionFlipFromTop animations:^{
        _imageViewFirst.alpha=0;
        _imageViewFirst.center=CGPointMake(50, 20);
        
    } completion:^(BOOL finished) {
        
        
    }];

}
原文地址:https://www.cnblogs.com/thbbsky/p/4380237.html