zoukankan      html  css  js  c++  java
  • self.view添加UIView时添加动画

        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"];
  • 相关阅读:
    随笔
    随笔
    第一个存储过程
    mysql 存储过程
    join
    随笔
    玩家注册登录
    mysql 存储二进制数据
    mysql学习
    socket listen/accept
  • 原文地址:https://www.cnblogs.com/hw140430/p/3889651.html
Copyright © 2011-2022 走看看