animation界面跳转翻页效果

    SecondViewController * vc = [[SecondViewController alloc]init];
    UIApplication * app = [UIApplication sharedApplication];
    AppDelegate * appDelegate = app.delegate ;
    UIWindow * window = appDelegate.window ;
    window.rootViewController = vc ;
    
//    设置翻页效果
    [UIView beginAnimations:nil context:nil];
    [UIView setAnimationDuration:2];
    //第一个参数:设置翻页效果
    //第二个参数:切换视图的父视图
    //第三个参数:是否使用缓存 ;
    [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:window cache:YES];
    [UIView commitAnimations];
animation界面跳转翻页效果_第1张图片

你可能感兴趣的:(animation界面跳转翻页效果)