zoukankan      html  css  js  c++  java
  • 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"]; }
  • 相关阅读:
    子网掩码
    IP详解
    TCP/IP模型和OSI模型的对应
    Nginx模块之请求限制
    Nginx中的压力测试工具
    Nginx服务器的处理机制
    算法笔记-动态规划
    算法笔记-分治法
    算法笔记-贪心算法
    算法笔记-乱七八糟问题
  • 原文地址:https://www.cnblogs.com/songxing10000/p/6496735.html
Copyright © 2011-2022 走看看