Reputation: 673
I am trying to implement a UI in apple watch similar to what Apple shows in their videos.
I would like to show this in the GlanceInterfaceController
as well as Apple Watch app's regular Interface Controller. I tried to group the label(WKInterfaceLabel
) and image(WKInterfaceImage
) objects using the WKInterfaceGroup
object, however the view is not coming as both center aligned. Could you please give me some tips on how to implement it using Storyboard (interface builder). Also in the Interface builder, it is not allowing me to place a label(WKInterfaceLabel
) on top of the image(WKInterfaceImage
) object.
Expected UI (almost):
Developed UI (using Interface builder and Storyboard):
Is it due to some mistake in my Layout implementation?
Thank you in advance!
Upvotes: 0
Views: 738
Reputation: 14237
You can do that in several ways.
One of the easiest and fastest way is to put your elements inside a group and use the image for the group background.
Another way you can do that is generating an image with the text inside using something like this example from Apple.
Upvotes: 2