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

UINavigationcontroller页面跳转动画

时间:2014-08-01 13:12:01      阅读:142      评论:0      收藏:0      [点我收藏+]

标签:style   io   for   size   type   ui   text   ad   

   第一种方式:

    MyViewController *my=[[MyViewController alloc] init];
    [self.navigationController pushViewController:my animated:NO];
     //因为一个事件循环机制中
    CATransition *tran=[CATransition animation];
    tran.duration=0.75;
    tran.type=@"cameraIrisHollowOpen";
    tran.subtype=kCATransitionFromLeft;
    [self.navigationController.view.layer addAnimation:tran forKey:nil];


第二种方式:
MyViewController *my=[[MyViewController alloc] init];
[UIView transitionWithView:self.navigationController.view duration:0.5 options:UIViewAnimationOptionTransitionCurlUp animations:^{
        
        [self.navigationController pushViewController:my animated:NO];
    } completion:^(BOOL finished) {
        
    }];
  
第三种方式:
    [UIView beginAnimations:nil context:nil];
    [UIView setAnimationDuration:0.5];
    [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.navigationController.view  cache:YES];
    MyViewController *my=[[MyViewController alloc] init];
   [self.navigationController pushViewController:my animated:NO];
    [UIView commitAnimations];


UINavigationcontroller页面跳转动画,布布扣,bubuko.com

UINavigationcontroller页面跳转动画

标签:style   io   for   size   type   ui   text   ad   

原文地址:http://www.cnblogs.com/ranger-jlu/p/3884564.html

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