//屏幕宽度
#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.         }];  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-04-03
  • 2021-06-24
猜你喜欢
  • 2021-07-17
  • 2021-05-18
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2022-01-13
  • 2022-12-23
相关资源
相似解决方案