UILabel  * label1 = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 320, 30)];
    label1.text = @"qingjoin";
    [self.view addSubview:label1];
    
    
    
    [UIView beginAnimations:nil context:nil];
    [UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
    [UIView setAnimationDuration:3.0];    
    [UIView setAnimationDelegate:self];
    label1.alpha =0.0;
    [UIView commitAnimations];

//3秒后消失

 

相关文章:

  • 2021-09-28
  • 2021-08-13
  • 2022-01-28
  • 2021-09-27
  • 2021-12-18
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2019-02-16
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案