Questions tagged [wkinterfacegroup]

A WKInterfaceImage object lets you manipulate an image in your WatchKit app’s interface. You use image objects to change the current image being displayed and to start and stop the animation of a sequence of images.

A WKInterfaceImage object lets you manipulate an image in your app’s interface. You use image objects to change the current image being displayed and to start and stop the animation of a sequence of images.

It is important to note the following:

Do not subclass or create instances of this class yourself. Instead, define outlets in your interface controller class and connect them to the corresponding objects in your storyboard file. For example, to refer to an image object in your interface, define a property with the following syntax in your interface controller class:

@IBOutlet weak var myImage: WKInterfaceImage!

Source: WKInterfaceImage in the Apple Documentation.

25 questions
9
votes
2 answers

Have horizontally aligned WKInterface elements fill view

I am trying to place 2 WKInterfaceButton items side by side on an Apple watch app. I have a WKInterfaceGroup which I set its layout to horizontal. This allows me to position the buttons next to each other. The issue is having them both fit exactly…
RyanTCB
  • 7,400
  • 5
  • 42
  • 62
5
votes
1 answer

WatchKit WKInterfaceGroup, one label on top of another?

Simple question: is it possible to stack one WKInterfaceLabel on top of another inside a WKInterfaceGroup? I’m dragging like a mad man and I cannot get the blue target line to setting above or below the first label. It’ll sit beside it, to its left…
Luke
  • 9,512
  • 15
  • 82
  • 146
3
votes
0 answers

Can you create apple watch interfaces programmatically?

I have done a lot of searching and I cannot seem to find a solid answer to this anywhere. In all of Apple's documentation, whenever they talk about adding anything to your Apple Watch view, they always say, "Go to the storyboard and drag and drop"…
Liftoff
  • 24,717
  • 13
  • 66
  • 119
2
votes
1 answer

Animated annotation on WKInterfaceMap Watchkit

Is there anyway to have an animated annotation for WKInterfaceMap of Watchkit? I have 35 images to form the animation. Currently I am using a NSTimer which calls -(void)addAnnotation:(CLLocationCoordinate2D)location withImageNamed:(NSString *)name…
2
votes
1 answer

Take a snapshot of a Group element with WatchKit & save to camera roll

I'm trying to programmatically take a snapshot of a Group element and its contents (a text label) and save it to the camera roll. I would usually do something like this (see code snippet) for an iPhone app but with WatchKit the Group element has a…
CaptainJ
  • 157
  • 3
  • 11
2
votes
1 answer

WKInterfaceTable inside WKInterfaceGroup with static BG image behind?

I’m trying to display a static background image behind a scrolling WKInterfaceTable, that could contain one or more rows. I’m trying to do this by placing the table inside a WKInterfaceGroup, and setting that group’s background image. The issue is…
Luke
  • 9,512
  • 15
  • 82
  • 146
2
votes
3 answers

How do I change the height type of a WKInterfaceObject programmatically?

In a WatchKit storyboard, if you add a WKInterfaceObject (e.g. WKInterfaceGroup), you have the following height and width options: Size To Fit Content Relative to Container (value and Adjustment) Fixed (value) In the WKInterfaceObject header,…
Senseful
  • 86,719
  • 67
  • 308
  • 465
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
2
votes
1 answer

Can part of an AppleWatch interface scroll independently?

I've got a WatchKit app that consists of a label and a couple of buttons. The label's contents might be long enough to cause scrolling, but I want the buttons to stay onscreen. Is it possible to have the label content scroll instead of the whole…
Tom Hamming
  • 10,577
  • 11
  • 71
  • 145
1
vote
0 answers

Apple Watch - Get Width of Elements Programmatically - WKInterfaceTable, WKInterfaceGroup

How can I get the width of apple watch elements programmatically? WKInterfaceTable, WKInterfaceGroup, etc
MobileMon
  • 8,341
  • 5
  • 56
  • 75
1
vote
1 answer

Save and Load Core Graphic UIImage Array on watchOS

I would like to be able to save a UIImage array created on the Apple Watch with watchOS and play this series of images as an animation as a group background. I can make the image array and play it but I cannot figure out how to store/save these…
Greg Robertson
  • 2,317
  • 1
  • 16
  • 30
1
vote
1 answer

WatchKit WKInterfaceGroup With Different Corner Radius

I'm creating a WatchKit 2.0 application which includes a conversation between members. In the conversation thread, I'm would like to have the WKInterfaceGroup's radius set for 3 of the corners like so: In the interface builder I know you can only…
Mike Walker
  • 2,944
  • 8
  • 30
  • 62
1
vote
2 answers

Print to Console when WKInterfaceTimer reaches 0

I want to see that my program knows when the timer is done. I'm using WKInterfaceTimer in Xcode 7 Beta 3 (7A152u). The "Tick Tock" prints to the console while the counter is counting down. But when it reaches 0, "Timer Done" does not print. …
Dan O'Leary
  • 916
  • 9
  • 20
1
vote
2 answers

Can I scroll WKInterfaceGroup programmatically?

I have a label with a long text and a button inside a WKInterfaceGroup. Can I scroll the group to top on the button's touch handler?
Yaroslav
  • 2,435
  • 1
  • 19
  • 36
1
vote
2 answers

Apple Watch: Is there a native way to add "color stripe" on the left side of a "WKInterfaceGroup"

I know this question may seem odd, but I seen this youtube video that has exactly what I want. Basically in the video it shows a "WKInterfaceGroup" that has a color stripe on the side. I am wondering if there is a native way of doing this? If not,…
Danger Veger
  • 1,117
  • 1
  • 9
  • 16
1
2