0

This question is mentioned in explaining How can I get a [Glance] Interface Controller / blank slate for Apple Watch? , but is a separate basic question.

In iOS, if you have a UIImage, you can create a UIImageView which supports, among other things, rotation, translation, and other transforms. In the Swift that I've seen, you can create a WKInterfaceImage, for instance:

@IBOutlet var foo: WKInterfaceImage!

However, there were no search results matching, for example WKInterfaceImageView.

How can I accomplish the work on an Apple Watch that might be done on an iPhone by getting a UIImageView from an Image? Are old-fashioned UIImageView/UIImages still available? Or is the best available method something like computing an image on the iPhone and dynamically offering it to the watch?

Thanks,

Community
  • 1
  • 1
Christos Hayward
  • 5,777
  • 17
  • 58
  • 113
  • You cannot have affine transforms to WKInterfaceImage, one thing that you can do is create your own drawing context, transform context, draw image there and then extract image from the context. – Sandeep Oct 12 '15 at 21:33
  • Thank you, @GeneratorOfOne. A brief Google search turned up Apple's documentation among others, but do you have any specific links to a tutorial? – Christos Hayward Oct 13 '15 at 10:59

0 Answers0