From a52e32670f8336cec0ccfd7d98f1c5eb5f88067d Mon Sep 17 00:00:00 2001 From: Looping Date: Sun, 2 Nov 2014 21:31:11 +0800 Subject: [PATCH] Fix a warning --- RCPageControl/RCPageControl.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RCPageControl/RCPageControl.m b/RCPageControl/RCPageControl.m index 23f7ddc..82463c2 100644 --- a/RCPageControl/RCPageControl.m +++ b/RCPageControl/RCPageControl.m @@ -377,7 +377,7 @@ [self bringSubviewToFront:_indicatorIndexLabel]; [_indicatorIndexLabel setCenter:[self _dotAtIndex:toPage].center]; - [_indicatorIndexLabel setText:[NSString stringWithFormat:@"%d", toPage + 1]]; + [_indicatorIndexLabel setText:[NSString stringWithFormat:@"%@", @(toPage + 1)]]; [_indicatorIndexLabel setAlpha:.3f];