Questions tagged [wkinterfaceimage]

WKInterfaceImage is an API available for Apple's WatchKit framework. A WKInterfaceImage object lets you manipulate an image in a WatchKit app’s interface.

WKInterfaceImage is an API available for Apple's WatchKit. A WKInterfaceImage object lets you manipulate an image in a WatchKit app’s interface. Use image objects to change the current image being displayed and to start and stop the animation of a sequence of images.

More information on WKInterfaceImage is available here.

See also

27 questions
0
votes
2 answers

Loading a UIImage in WatchKit from a different Bundle

My app is currently structured to use dynamic library to enable code reuse. I have images stored within my dynamic library so they can easily be shared between different app targets. This works fine in iOS because I can use the UIImage(named:, in:,…
Harish
  • 1,374
  • 17
  • 39
0
votes
1 answer

Animating Image in Watch App doesn't work (Swift)

I have a problem with my animated image. In my page, I have a label in the center, initialised with a text "Start dictation" and an Image at the bottom initialised without image There is my code : func dictation() { let seconds = 1.0 …
0
votes
2 answers

Passing a UIImage from phone to watch is not working

For watchOS 2 and Xcode 7.3, I am trying to send an image I have in the iPhone side to the watch side. In the phone side, I have this: func sendImage() { if WCSession.isSupported() { let session = WCSession.defaultSession() if…
AppsDev
  • 12,319
  • 23
  • 93
  • 186
0
votes
1 answer

WKInterfaceImage and dynamic images on watchOS 2

If I create a UIImage and display it using a WKInterfaceImage it always displays the image as @1x instead of @2x resulting in a pixelated image. It worked fine with watchOS 1. How to fix this behavior with watchOS 2? The same code works fine on…
Berry Blue
  • 15,330
  • 18
  • 62
  • 113
0
votes
0 answers

How can I transform an image for Apple Watch?

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,…
Christos Hayward
  • 5,777
  • 17
  • 58
  • 113
0
votes
1 answer

How to change image mode of WKInterfaceImage programmatically ?(objective C)

I am developing an app for watchkit2. I am setting image mode of WKInterfaceImage object from the interface builder to centre, I need to change it to Aspect Fit after some code is executed. I cannot see any mention of doing this via code in apple's…
0
votes
2 answers

Download images in a Table in watch kit async

I am developing a WatchKit app, I need to get some images(sometimes 50 thumbnails) to fulfill a Table. I am downloading the images in the iOS app and passing them to the WatchKit Extension, but I am having problems. First, I have three buttons, if I…
croigsalvador
  • 1,993
  • 2
  • 24
  • 47
0
votes
1 answer

CGImageCreateWithMaskingColors Does Not Mask on Apple Watch in WKInterfaceImage

I've long since had a snippet of code in my iPhone app that attempts to mask the white background from some JPEG images. Today, this message still works well on iPhone, but does not mask whatsoever on Apple Watch. The code runs on the expected…
greg
  • 4,843
  • 32
  • 47
0
votes
1 answer

How can I change frame or size of WKInterfaceImage object for Apple Watch?

How can I change size of WKInterfaceImage object? Official documentation doesn't provide any way to do this simple step.
Dmitry
  • 14,306
  • 23
  • 105
  • 189
0
votes
1 answer

Custom Image on WKInterfaceMenuItem not Showing

I am trying to get my menu set up for my WatchKit app. According to the documentation on the Watch HIG, the Canvas size for the image should be 80 x 80. I did this, set my MenuItem as Custom, and put in the image I created, however nothing shows…
user717452
  • 33
  • 14
  • 73
  • 149
0
votes
1 answer

There is no way to transfer an UIImage from iPhone to WKInterfaceImage in the WatchKit app, correct?

There is no way to transfer an UIImage from iPhone to WKInterfaceImage in the WatchKit app, correct? There are limitations that will not allow that, correct? Then I tried saving it in the documents folder on the device. But those are 2 seperate…
Neo101
  • 33
  • 3
0
votes
1 answer

How WatchKit handles images?

I've just a question: what is the real difference between saving the images on the WatchKit App or saving them on the iOS App/WatchKit Extension? I mean, the images saved on the WatchKit App are really saved on the Watch? If I save a lot of images…
Antonio Giarrusso
  • 810
  • 1
  • 9
  • 19
1
2