首页 > 其他 > 详细

self.view添加UIView时添加动画

时间:2014-08-04 13:25:57      阅读:310      评论:0      收藏:0      [点我收藏+]
    CATransition *animation = [CATransition animation];
    animation.delegate = self;
    animation.duration = 0.5f;
    animation.timingFunction = UIViewAnimationCurveEaseInOut;
    
    if ([subView isKindOfClass:[AreaNumPickerView class]]) {
        animation.subtype = kCATransitionFromBottom;
    }else{
        animation.type    = kCATransitionPush;     //平移
        animation.subtype = kCATransitionFromRight;//从右到左
    }
    
    [superView addSubview:subView];
    [[superView layer] addAnimation:animation forKey:@"animation"];

 

self.view添加UIView时添加动画,布布扣,bubuko.com

self.view添加UIView时添加动画

原文:http://www.cnblogs.com/hw140430/p/3889651.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!