xcode - Does animationDidStop actually exist in WKInterfaceImage? -


in watchkit project have image , want execute method animation started startanimatingwithimagesinrange done. xcode prompts there exists animationdidstop method in wkinterfaceimage. xcode prompt though, cannot find in wkinterfaceimage reference , disappoints me. so, bug or not , how use method? or should perform workaround using nstimer?

new answer

i think found bug in xcode. noted, documentation not show wkinterfaceimage conforms caanimation or delegates. here's little test did in playground confirm issue:

// documented methods wkinterfaceimage.instancesrespondtoselector(selector("startanimating")) // returns true wkinterfaceimage.instancesrespondtoselector(selector("stopanimating")) // returns true  // undoscumented methods wkinterfaceimage.instancesrespondtoselector(selector("animationdidstart:")) // returns false wkinterfaceimage.instancesrespondtoselector(selector("animationdidstop:")) // returns false 

so, though autocompletes, don't think methods hit, watchkit did not ship caanimation support or alternative caanimation.

old answer

there stopanimation method on wkinterfaceimage:

https://developer.apple.com/library/ios/documentation/watchkit/reference/wkinterfaceimage_class/index.html#//apple_ref/occ/instm/wkinterfaceimage/stopanimating


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -