From 2795887b44cdf28196eb272fbb4bbebb3f1d1679 Mon Sep 17 00:00:00 2001 From: Looping Date: Mon, 8 Dec 2014 21:06:13 +0800 Subject: [PATCH] Change animation fromValue to @(0.f) --- RCPageControl/RCPageControl.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RCPageControl/RCPageControl.m b/RCPageControl/RCPageControl.m index 41b4661..f0bf4bc 100644 --- a/RCPageControl/RCPageControl.m +++ b/RCPageControl/RCPageControl.m @@ -379,7 +379,7 @@ [_indicatorIndexLabel setText:[NSString stringWithFormat:@"%@", @(toPage + 1)]]; POPBasicAnimation *alphaAnimation = [POPBasicAnimation animationWithPropertyNamed:kPOPViewAlpha]; - alphaAnimation.fromValue = @(.3f); + alphaAnimation.fromValue = @(0.f); alphaAnimation.toValue = @(1.f); alphaAnimation.duration = _disableAnimation ? 0 : _animationDuration; [_indicatorIndexLabel pop_addAnimation:alphaAnimation forKey:RCDefaultIndicatorIndexLabelAlphaAnimationKey];