• pop动画库简单使用小记





    - (void)animateInView:(UIView *)view{ UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"auto_common_点赞高亮"]]; imageView.frame = view.frame; imageView.contentMode = UIViewContentModeScaleAspectFit; [self addSubview:imageView]; view.hidden = YES; POPBasicAnimation *animation = [POPBasicAnimation animationWithPropertyNamed:kPOPLayerSize]; animation.duration = 0.2; [animation setCompletionBlock:^(POPAnimation *anim, BOOL finish) { if (finish) { POPBasicAnimation *animation = [POPBasicAnimation animationWithPropertyNamed:kPOPLayerSize]; animation.duration = 0.1; [animation setCompletionBlock:^(POPAnimation *anim, BOOL finish) { if (finish) { [imageView removeFromSuperview]; view.hidden = NO; } }]; animation.toValue = [NSValue valueWithCGSize:view.lh_size]; [imageView pop_addAnimation:animation forKey:@"size"]; } }]; animation.toValue = [NSValue valueWithCGSize:CGSizeMake(40, 40)]; [imageView pop_addAnimation:animation forKey:@"size"]; }
  • 相关阅读:
    three.js模型
    three.js贴图
    three.js材质
    three.js自定义形状
    border
    虚拟主机Dede程序安装
    万网虚拟主机目录
    ConcurrentHashMap
    Oracle中select使用别名
    单例模式
  • 原文地址:https://www.cnblogs.com/songxing10000/p/6496735.html
Copyright © 2020-2023  润新知