Animating a UIImage or UIImageView?

前端 未结 6 604
刺人心
刺人心 2021-02-09 06:18

I\'m trying to animate an image\'s height (from height of 0 pixels to 480 pixels) to create the effect of the image being rendered top-down.

With an UIImageView i notice

6条回答
  •  有刺的猬
    2021-02-09 06:38

    As mentioned in the original post, here is the answer i seem to have stumbled upon:

    For the top-most imageview, i set the content mode to Top (so it doesnt scale). Then in code, i set the clipsToBounds to True. Now i am able to animate the top-most imageview height thus giving me the effect i am looking for.

提交回复
热议问题