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

修改push动画的方向

时间:2015-09-18 13:42:49      阅读:135      评论:0      收藏:0      [点我收藏+]

标签:

 CATransition *animation = [CATransition animation];

    animation.duration = 0.4;

    animation.timingFunction = UIViewAnimationCurveEaseInOut;

    animation.fillMode = kCAFillModeForwards;

    animation.type = kCATransitionPush;

    animation.subtype = kCATransitionFromBottom;//从底部滑动上去

    [self.navigationController.view.layer addAnimation:animation forKey:@"animation"];

    [self.navigationController popViewControllerAnimated:NO];

修改push动画的方向

标签:

原文地址:http://www.cnblogs.com/sgdkg/p/4818737.html

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