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.         }];  
  • 相关阅读:
    多任务拷贝小案例
    进程池
    进程间的通信
    互斥锁
    创建函数/类的线程
    udp/tcp流程
    发布模块
    私有属性/方法的访问
    深入了解jQuery之整体架构
    (转)前端面试题
  • 原文地址:https://www.cnblogs.com/shenlaiyaoshi/p/8488207.html
Copyright © 2011-2022 走看看