无法在 watchOS 2 中将图像添加到缓存?

Cannot add image to cache in watchOS 2?

在 watchOS 2 WKInterfaceDevice class 中,没有 -addCachedImage: 的声明。如果您想使用它,它会将您的代码标记为不可用。

不过,它有一个 cachedImages 属性。我想知道 watchOS 2 中缓存图像的 API 在哪里?感谢您的帮助!

watchOS 2 beta 4 及以下版本会发生这种情况。

"Image caching is not supported in watchOS 2."

来自: https://developer.apple.com/library/prerelease/watchos/documentation/WatchKit/Reference/WKInterfaceImage_class/index.html#//apple_ref/occ/cl/WKInterfaceImage