This commit is contained in:
启星
2025-12-30 19:08:34 +08:00
parent 1a9d6650f5
commit b724fe2a67
111 changed files with 1078 additions and 162 deletions

View File

@@ -42,6 +42,8 @@
@property (nonatomic,strong) VAPView *micMp4View;
@property (nonatomic,strong)UIButton *headerBtn;
@property (nonatomic,assign)BOOL isCycleAnimation;
@end
@implementation QXRoomSeatContentView
@@ -530,6 +532,39 @@
}
-(void)startCycleAnimation{
if (self.isCycleAnimation == YES) {
return;
}
CABasicAnimation* rotationAnimation;
//y ---> transform.rotation.y
rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];
//
rotationAnimation.toValue = [NSNumber numberWithFloat: M_PI];
//
rotationAnimation.duration = 2;
rotationAnimation.cumulative = YES;
rotationAnimation.removedOnCompletion = NO;
//MAXFLOAT
rotationAnimation.repeatCount = MAXFLOAT;
[self.headerView.layer addAnimation:rotationAnimation forKey:@"rotationAnimation"];
}
-(void)stopCycleAnimation{
self.isCycleAnimation = NO;
[self.headerView.layer removeAllAnimations];
}
-(void)setNumberString:(NSString *)numberString{
self.numberLabel.text = numberString;
}