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
. 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
:
Comments
Post a Comment