Iphone SDK:每秒缩放图像
如何使用整数每秒缩放图像?
我想做这样的事情:
我有一个时间,它将从我将使用的整数减少 0,025缩放我的图像。
我还将有另一个可以缩放图像的计时器。
我希望第二个计时器执行类似的操作:
MyImage.image.size.width * MyInteger
MyImage.image.size.hight * MyInteger
如何使缩放动画像 CGTransform 动画一样平滑运行?
How can i scale an image every second by using an integer??
I want to do something like this:
I'l have a time which will decrese 0,025 from an integer that i will use to scale my image.
I will also have another timer which would scale the image.
I want the second timer to do something like that:
MyImage.image.size.width * MyInteger
MyImage.image.size.hight * MyInteger
How can i make the scaling animation run smooth like the CGTransform Animations?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为计算持续时间和目标比例因子比您建议的方法要容易得多。试试这个:
你甚至可以每秒触发这个动画,只要你设置的持续时间小于一秒。您可以从比例因子中减去一个值以获得所需的级数。
I think it's far easier to figure out the duration and the target scale factors than your suggested way. Try this instead:
You can even trigger this animation every second, as long as you set the duration less than a second. You can subtract a value from the scale factors to get in the progression you need.