zoukankan      html  css  js  c++  java
  • iOS 启动页放大淡出效果

    //屏幕宽度
    #define kWIDTH [UIScreen mainScreen].bounds.size.width
    //屏幕高度

    #define kHEIGHT [UIScreen mainScreen].bounds.size.height

    [objc] view plain copy
     
    1. UIImageView * lunchImg=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT)];  
    2.         lunchImg.image=[UIImage imageNamed:@"lunch"];  
    3.         [[UIApplication sharedApplication].keyWindow addSubview:lunchImg];  
    4.           
    5.           
    6.         [UIView animateWithDuration:0.8 animations:^{  
    7.             lunchImg.layer.transform = CATransform3DMakeScale(1.5, 1.5, 1);  
    8.             lunchImg.alpha=0.0;  
    9.         } completion:^(BOOL finished) {  
    10.             [lunchImg removeFromSuperview];  
    11.         }];  
  • 相关阅读:
    v-cloak
    MVVM
    初识ajax
    装瓶学习法
    回调函数(call back)
    如何让学习变得纯粹?
    异步
    grep用法
    Shell中的&&与||的区别
    shell中使用>/dev/null 2>&1 丢弃信息
  • 原文地址:https://www.cnblogs.com/shenlaiyaoshi/p/8488207.html
Copyright © 2011-2022 走看看