Is UILabel's backgroundColor not animatable?

前端 未结 1 1088
闹比i
闹比i 2020-12-18 12:20

I have a gridView, I use to display several GridViewCell : UIView. The GidViewCell adds an UILabel to itself and attaches anUITapGestureRecog

相关标签:
1条回答
  • 2020-12-18 12:42

    I've never tried this myself but I know of someone who has. I don't know if this is a bug in the documentation or in the code. I'm assuming the latter since UILabel inherits from UIView and I know for sure that you're able to animate the background of a UIView. The workaround apparently is to drill down to the underlying CALayer and set the background color there.

    0 讨论(0)
提交回复
热议问题