Watchkit动画实现:钟面,动画图,圆形进度条 [英] Watchkit animation implementations: clock face, animated charts, circular progress bar
问题描述
我见过的潜力watchkit应用程序的一些非常基本的演示,有的出现来实现动画。例子可能是:
I've seen some very basic demos of potential watchkit apps, and some appear to implement animations. Examples might be:
- 一个钟面与运动秒针,甚至分针。
- 与动画,或者谁塑造了新的实时数据变化吧条形图。
- 圆形进度条是谁的酒吧动画从零到当前值。
到目前为止做动画我见过的唯一方法是通过图像在一个时间序列:
The only way I've seen so far to do animations is by a sequence of images over a duration:
[imageView startAnimatingWithImagesInRange:NSMakeRange(0, 60) duration:1.0 repeatCount:0];
如何将这些previous动画的例子通常可以实现?我无法想象,他们都与图像序列进行。我不认为一个人甚至可以分层图像,并协调安排将是一场噩梦。
How would these previous animation examples generally be implemented? I can't imagine they are all done with image sequences. I don't think one can even layer images, and coordinating placement would be a nightmare.
推荐答案
他们都用图像序列进行。下面是一些code代表我如何在地图上动画的运动。 <一href=\"http://stackoverflow.com/questions/27556113/is-it-possible-to-position-views-on-top-of-each-other/27556227#27556227\">Is可以定位在彼此的顶视图
They are all done with sequences of images. Here is some code for how I animate movement on a map. Is it possible to position views on top of each other
修改
您也可以找到这些框架很有帮助。
https://github.com/frosty/Flipbook
https://github.com/radianttap/WatchRingGenerator
You may also find these frameworks helpful. https://github.com/frosty/Flipbook https://github.com/radianttap/WatchRingGenerator
第二次修改
下面是添加动画到您的关注应用的另一个大文章。 http://david-smith.org/博客/ 2015/03/04 / ailw-加位-的,生动活泼/
Here is another great article on adding animation into your Watch App. http://david-smith.org/blog/2015/03/04/ailw-adding-bits-of-liveliness/
这篇关于Watchkit动画实现:钟面,动画图,圆形进度条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!