修改连送偶现不显示问题
This commit is contained in:
@@ -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"];
|
||||
|
||||
Reference in New Issue
Block a user