修改连送偶现不显示问题

This commit is contained in:
启星
2025-12-29 23:28:26 +08:00
parent 890c5f59ed
commit 1a9d6650f5
3 changed files with 38 additions and 29 deletions

View File

@@ -1262,17 +1262,14 @@
//
[self.layer addSublayer:circleLayer];
//
[circleLayer addAnimation:self.animation forKey:@"circleAnimation"];
// [circleLayer addAnimation:self.animation forKey:@"circleAnimation"];
circleLayer.strokeEnd = 0.0f;
}
-(void)sendAction{
self.circleLayer.strokeEnd = 1.0f;
[self.circleLayer removeAllAnimations];
_animation = nil;
[self.circleLayer addAnimation:self.animation forKey:@"circleAnimation"];
[self startAnimation];
[[QXGlobal shareGlobal] vibrationFeedback];
switch (self.sendType) {
case QXSendGiftViewTypeRoom:
@@ -1300,6 +1297,13 @@
break;
}
}
-(void)startAnimation{
self.circleLayer.strokeEnd = 1.0f;
[self.circleLayer removeAllAnimations];
_animation = nil;
[self.circleLayer addAnimation:self.animation forKey:@"circleAnimation"];
}
-(CABasicAnimation *)animation{
if (!_animation) {
_animation = [CABasicAnimation animationWithKeyPath:@"strokeEnd"];