Min*_*Soe 4 animation reverse ios apple-watch
我正在开发Apple手表应用程序.在应用程序中,我有动画进度条.我在用
- (void)startAnimatingWithImagesInRange:(NSRange)imageRange
duration:(NSTimeInterval)duration
repeatCount:(NSInteger)repeatCount
Run Code Online (Sandbox Code Playgroud)
这对于增加0到50的进度很好.我想知道是否有任何方法可以将此反转为50到0.我已经尝试使用减去NSRange长度值而没有运气.
谢谢
正如WKInterfaceImage(https://developer.apple.com/library/prerelease/ios/documentation/WatchKit/Reference/WKInterfaceImage_class/#//apple_ref/occ/instm/WKInterfaceImage/startAnimatingWithImagesInRange:duration:repeatCount :) 的文档中所述,你所要做的就是提供负值duration.
| 归档时间: |
|
| 查看次数: |
687 次 |
| 最近记录: |