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