diff --git a/AXRatingView/AXRatingView.m b/AXRatingView/AXRatingView.m index 321c310..78b4e76 100755 --- a/AXRatingView/AXRatingView.m +++ b/AXRatingView/AXRatingView.m @@ -111,7 +111,6 @@ - (void)setValue:(float)value { _value = MIN(MAX(value, 0.0), _numberOfStar); [self setNeedsDisplay]; - [self sendActionsForControlEvents:UIControlEventValueChanged]; } - (void)setBaseColor:(UIColor *)baseColor @@ -198,6 +197,7 @@ - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event value = ceilf(value / _stepInterval) * _stepInterval; } [self setValue:value]; + [self sendActionsForControlEvents:UIControlEventValueChanged]; } @end