Showing pushviewcontroller animation look like presentModalViewController

后端 未结 5 778
时光说笑
时光说笑 2020-11-29 18:05

Is it possible to show pushViewController animation look like presentModalViewController but that has background functionality of pushViewCon

5条回答
  •  不知归路
    2020-11-29 18:26

    Try this :

    UIViewController *yourViewController = [[UIViewController alloc]init];
    
    [UIView  beginAnimations: @"Showinfo"context: nil];
    [UIView setAnimationCurve: UIViewAnimationCurveEaseInOut];
    [UIView setAnimationDuration:0.75];
    [self.navigationController pushViewController: yourViewController animated:NO];
    [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.navigationController.view cache:NO];
    [UIView commitAnimations];
    

提交回复
热议问题