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
6
votes
2 answers

Find height and width of a WKInterfaceImage

I want to programmatically render a UIImage and then display it on Apple Watch in a WKInterfaceImage, which height and width I set to "Relative to Container" (so that it basically takes up the entire screen space). How can I obtain the…
Christian
  • 1,589
  • 1
  • 18
  • 36
4
votes
2 answers

image by url for Apple Watch

I am trying to use this solution: load-image-from-url-on-watchkit I have a table on the watch that I am trying to load images for in each row. I am running this code and then I update the text fields of the table. Without trying to get the images,…
John Smith
  • 123
  • 4
4
votes
4 answers

Images on apple watch

I ran into a problem yesterday when my application was rejected. Apparently the images are not being displayed on the actual Apple Watch, however they are being displayed in the simulator. I even tried resetting the simulator and can't replicate the…
4
votes
1 answer

WatchKit: How to animate Images stored in Nsmutablearray dynamically in objC

Here is my doubt !!! How to run the gif image directly from nsmutablearray which i stored images dynamically by assigning it to Wkinterfaceimage ??? Currently i'm working on the GIf Images assigning to the wkinterfaceimage. I stored set of images in…
LOVE_2_CODE
  • 445
  • 4
  • 14
4
votes
3 answers

Set (border) radius of a WKInterfaceImage by code

I have to set the radius attribute of a WKInterfaceImage by Swift code. I need the same formatting as for my others UIImageViews: logoView.layer.cornerRadius = logoView.frame.width / 2 logoView.clipsToBounds = true …
Tobonaut
  • 2,245
  • 2
  • 26
  • 39
4
votes
1 answer

WatchKit: image not shown

Here are the codes: @interface InterfaceController() @property (nonatomic, weak) IBOutlet WKInterfaceImage *qrImage; @property (nonatomic, weak) IBOutlet WKInterfaceLabel *label; @end @implementation InterfaceController -…
Jinghan Wang
  • 1,139
  • 12
  • 21
3
votes
0 answers

Proper way to cache animated image in Apple Watch?

I am developing Apple watch app, Displaying data using WKInterfaceTable, each row has a animated image (80frames, 10sec duration) I want to animated this image every 10 second, but there is a problem, this causes the Watch very lag when the image…
Johnny
  • 2,589
  • 2
  • 27
  • 34
3
votes
2 answers

How to run a animated Gif directly by assigning it to Wkinterfaceimage using watchkit in Xcode?

Here is my doubt !!! How to run a animated gif image directly by getting dynamically from url / NSdata and assigning it to Wkinterfaceimage ??? i am working on the applewatch app development from past few days it's so great.Currently i'm working on…
LOVE_2_CODE
  • 445
  • 4
  • 14
2
votes
1 answer

Move a WKInterfaceImage on Apple Watch

I'm trying to move a WKInterfaceImage. So far the answers I've found and code I've run lets me change the width and size. I want to be able to move an image like I would set the frame or offset to animate an image moving across the screen. Is this…
quantumpotato
  • 9,637
  • 14
  • 70
  • 146
2
votes
1 answer

WatchKit group: with image and label, image gets 2 of 4 corners rounded

I'm trying to lay out a view in WatchKit with an image and a label side by side. I create a Group with a Horizontal orientation, and add the Image with left justification and a label with right justification. I actually get two different problems…
Mike Yawn
  • 115
  • 1
  • 6
1
vote
1 answer

Apple Watch 3px minimum left/right padding/margin?

Hey I am trying to display a picture "full screen" on the Apple Watch. However, it's not using the full width, there are like 2 pixels padding/margin on each side. How to remove this? I've already tried putting the WKInterfaceImage in a group and…
user2875404
  • 3,048
  • 3
  • 25
  • 47
1
vote
1 answer

Optimal image size for icon in Watch app table row

What is the optimal/max image size for an icon in a Watch app table row, in order to avoid scaling of the original image?
david72
  • 7,151
  • 3
  • 37
  • 59
1
vote
1 answer

Check if image with name is set (WatchKit)

I'd like to check if an image with the name "image.png" is set to the image view "imgView". I know how I can do this with Swift in the normal ViewController.swift but don't know how I can do this in the watch kit extension…
Vpor
  • 147
  • 1
  • 1
  • 7
1
vote
2 answers

How to enable zoom for images in Apple Watch

I have an iOS app with Apple Watch app included. What I do with the solution is showing a trend chart (line graph) which is drawn in iOS app and sent to watch app. I use a WKInterfaceImage instance to show the graph in the Apple Watch app, but it…
1
vote
1 answer

WKinterfaceImage in table losing image when refreshed

I have a WKInterfaceTable in a WatchKit app. The rows in the table each have an image and a label. On first load of the interface controller, I set up the table either in awakeWithContext or willActivate, and everything works fine. The labels and…
Tom Hamming
  • 10,577
  • 11
  • 71
  • 145
1
2