iPad: Animate UILabels color changing

后端 未结 7 376
礼貌的吻别
礼貌的吻别 2020-12-04 20:37

I have a label which pops up displaying points in my application. I am using the following code to make the label get larger in scale, then smaller. I would also like to ani

相关标签:
7条回答
  • 2020-12-04 21:02

    Try This:

    [UIView animateWithDuration:0.5 animations:^{
    
        label.alpha=0.3;
    
    
    }completion:^(BOOL finished)
     {
        label.backgroundcolor=[uicolor purplecolor]; 
    
    
         [UIView animateWithDuration:0.5 animations:^{
    
             label.alpha=1.0;
    
         }completion:^(BOOL finished)
          {
    
          }];
    
     }];
    
    0 讨论(0)
提交回复
热议问题