ios - WatchKit 基本文本动画

标签 ios animation watchkit wkinterfacegroup

是否可以重现我们在演示页面上看到的基本动画:http://www.apple.com/watch/health-and-fitness/

我们可以看到一些文本出现/消失。 我想知道他们是否做到了,我们是否也可以做到,或者我们还没有获得这些方法...

我知道 watchKit 上的动画非常有限,但我们可以用 NSTimer 和 WKInterfacegroup 做点什么吗?

最佳答案

我想我找到了答案:

http://www.raywenderlich.com/94672/watchkit-faq

Can I use Core Graphics to generate images dynamically and then use them in a watch app? Can they be cached on the watch?

Yes, but the composition of any images using Core Graphics must take place on the iPhone as part of the extension. Once you have rendered the Core Graphics drawing context into an instance of UIImage you can then cache it on the watch using addCachedImage(_:name:) from WKInterfaceDevice.

关于ios - WatchKit 基本文本动画,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29564573/

相关文章:

ios - 在 Xcode 中暂停 iPhone 游戏以防止中断

JavaScript 来控制图像动画?

cocoapods - 使用 Cocoapods + WatchOS 2 目标

ios - watchkit 配套应用程序无法启动

ios - Watchkit-应用程序 : handleWatchKitExtensionRequest error

ios - 从 renderInContext 中移除图层

ios - 不断调用方法,直到 View 被取消

Android - 显示 .swf 动画(按原样或转换为..?)

ios - 如何在 tableview 中快速设置索引

ios - 如何根据后者的进度向已经运行的动画添加动画?