Animating a UIImage or UIImageView?

前端 未结 6 645
刺人心
刺人心 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:23

    You may want to check out Animation Blocks. They're documented quite thoroughly here:

    http://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptual/ViewPG_iPhoneOS/AnimatingViews/AnimatingViews.html

    All the code there is relevant, because UIImageView is a subclass of UIView.

    Happy coding.

提交回复
热议问题