我正在开发 Apple Watch 应用程序。在应用程序中,我有带动画的进度条。我正在使用
- (void)startAnimatingWithImagesInRange:(NSRange)imageRange
duration:(NSTimeInterval)duration
repeatCount:(NSInteger)repeatCount
这对于将进度从 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
提供一个负值。
关于ios - startAnimatingWithImagesInRange 反转,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30094309/