iPad: Animate UILabels color changing

后端 未结 7 405
礼貌的吻别
礼貌的吻别 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 20:49

    You can use iOS 4.0's view transition method to do this:

    [UIView transitionWithView:statusLabel duration:0.25 options:UIViewAnimationOptionTransitionCrossDissolve animations:^{
        [statusLabel setTextColor:[UIColor whiteColor]];
        [statusLabel setShadowColor:[UIColor blackColor]];
    } completion:nil];
    

提交回复
热议问题