0

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 documentation.. Has anyone encountered this scenario yet ?

Umar Farooque
  • 2,049
  • 21
  • 32

1 Answers1

0

Try to add 2 instances of your image. Set first's image mode to center, and second's to Aspect Fit. But hide second (hidden flag). You can show and hide your images with setHidden method

GRiMe2D
  • 654
  • 1
  • 10
  • 22