简单实现转场动画

MusicPlayViewController * mvc = [MusicPlayViewController shareMusicMananger];

        CATransition *animation = [CATransition animation];
        animation.type = @"rippleEffect";
        animation.subtype = @"fromBottom";
        animation.duration=  1.0;
        animation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionLinear];
        [self.navigationController.view.layer addAnimation:animation forKey:nil];
        
        [self.navigationController pushViewController:mvc animated:YES];


效果还不错

你可能感兴趣的:(简单实现转场动画)