After some research, I found a solution, it's quite simple, but easily ignored :)
First drag the button to the scene created in the storyboard.
Secondly, select the button, change its content property from Text to Group . If you cannot find the content property, click the Attributes Inspector button in the upper right corner of the screen, it looks like a breakpoint button or a down arrow with a line.

Now you can manage the group created inside your button. You must add a link to this WKInterfaceGroup inside your controller code. Here is an example:
@interface AAPLButtonDetailController() @property (weak, nonatomic) IBOutlet WKInterfaceGroup *buttonGroup; @end @implementation AAPLButtonDetailController - (instancetype)init { self = [super init]; if (self) { // Initialize variables here. // Configure interface objects here. [_buttonGroup setBackgroundImageNamed:@"Bus"]; [_buttonGroup startAnimating]; } return self; }
Thus, the button animation will play after the scene is initialized. Remember that while only frame animation is supported, all frames in one animation should be called "Bus0.png", "Bus1.png" ....

Hope this helps :)
Reck hou
source share