presentViewController 四个跳转页面效果

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

//button点击事件
- (void)buttonck:(UIButton *)btn{
    TiaoZhuanYeMianViewController *tiao = [[TiaoZhuanYeMianViewController alloc]init];
    switch (btn.tag) {
        case 100:
        {
            //上下切换
        tiao.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
        
        }
            break;
        case 101:
        {
            //渐变切换
            tiao.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
            
        }
            break;
        case 102:
        {
            //左右切换
            tiao.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
            
        }
            break;
        case 103:
        {
            //卷页切换
             tiao.modalTransitionStyle  = UIModalTransitionStylePartialCurl;
        }
            break;
        default:
            break;
    }
    [self presentViewController:tiao animated:YES completion:^{
        NSLog(@"完成");
    }
     ];
}