Animating Frame of UILabel smoothly

前端 未结 5 1703
我寻月下人不归
我寻月下人不归 2020-12-06 12:23

I\'ve been trying to figure out a decent way to smoothly animate a frame size change on a UILabel, without a weird starting jump redraw. What happens by default is that when

5条回答
  •  长情又很酷
    2020-12-06 12:52

    Hooray for answering a two-year dead question, but I found the answer. Either in Interface Builder or in code, change the contentMode property of the label. Yours seems to be set on scaleToFill; try left or right.

提交回复
热议问题