码迷,mamicode.com
首页 > 其他好文 > 详细

presentViewController 跳转效果

时间:2015-08-26 15:43:21      阅读:142      评论:0      收藏:0      [点我收藏+]

标签:

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

presentViewController 跳转效果

标签:

原文地址:http://www.cnblogs.com/zhanghuifeng/p/4760329.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!