3

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 the GIf Images assigning to the imageview. I successfuly done by adding the series of images statically in xcode and running it by assigning to Wkinterfaceimage.

LOVE_2_CODE
  • 445
  • 4
  • 14

2 Answers2

1

Right now, Watchkit does not support to run the GIF image. So although you can download the GIF Image from url but you can't show up on the watchkit interface. to show the gif file, we have split gif file to severals images and after that we can start animated the image instead of show gif file.

Hieu Duc Pham
  • 1,074
  • 1
  • 10
  • 24
  • how to assign that array to the Wkinterfaceimage buddy it not taking the image from the array can u help me here @Hieu Duc Pham – LOVE_2_CODE Apr 07 '15 at 08:46
  • you can follow this tutorial for clearly how to animated image: http://natashatherobot.com/watchkit-animate/ – Hieu Duc Pham Apr 07 '15 at 10:59
-1

Download GIF image from URL to NSData type. Then, Pass that NSData object to WKInterfaceImage setImageData method.

Hawk-Eye
  • 400
  • 1
  • 7
  • 23