I would like to increase the height of a UIImageView
with every animation frame using Core Animation. Is there any way to do this?
I have done this using an NSTimer
. I set the UIImageView
contentMode to scalingMode and then with each tick of the timer i was incrementing the height.
Is there a cleaner, high level way of doing this using Core Animation?
Thanks, Harikant Jammi
With Core Animation, you would generally pick a desired size, and a duration, and the system will figure out the keyframes to get you there. You CAN enter a bunch of interim points, and a bunch of times, but you won't be able to get exactly to the set-each-frame-value-precisely point. The system will do it's best to make it smooth.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.