diff --git a/ios/sdk/WeexSDK/Sources/Component/WXCycleSliderComponent.mm b/ios/sdk/WeexSDK/Sources/Component/WXCycleSliderComponent.mm index 865778c79a..d3ba26c6a2 100644 --- a/ios/sdk/WeexSDK/Sources/Component/WXCycleSliderComponent.mm +++ b/ios/sdk/WeexSDK/Sources/Component/WXCycleSliderComponent.mm @@ -148,6 +148,10 @@ - (UIView *)getItemAtIndex:(NSInteger)index - (void)setCurrentIndex:(NSInteger)currentIndex { + if (_currentIndex == currentIndex) { + return; + } + if (currentIndex >= _itemViews.count || currentIndex < 0) { currentIndex = 0; }