diff --git a/FLAnimatedImage/FLAnimatedImageView.m b/FLAnimatedImage/FLAnimatedImageView.m index 34178ef..801e806 100755 --- a/FLAnimatedImage/FLAnimatedImageView.m +++ b/FLAnimatedImage/FLAnimatedImageView.m @@ -398,7 +398,7 @@ - (void)displayDidRefresh:(CADisplayLink *)displayLink } if (@available(iOS 10, *)) { - self.accumulator += displayLink.targetTimestamp - CACurrentMediaTime(); + self.accumulator += ((NSTimeInterval)1)/((NSTimeInterval)displayLink.preferredFramesPerSecond); } else { self.accumulator += displayLink.duration * (NSTimeInterval)displayLink.frameInterval; }