presentViewController 跳转效果

//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(@"完成");
    }
     ];
}

posted on 2015-08-26 14:30  殇_了  阅读(361)  评论(0编辑  收藏  举报

导航