房间相册模块

This commit is contained in:
liyuhua
2023-10-17 18:30:14 +08:00
parent 2f5232a7ec
commit 63492e37cf
66 changed files with 1598 additions and 146 deletions

View File

@@ -64,6 +64,8 @@ UIKIT_EXTERN NSString * const kShieldingNotification;
@property(nonatomic,strong)XPNewHomePartyTableViewCell *cell;
///cellUITableViewY
@property(nonatomic,assign) CGFloat cellY;
///cellUITableViewY
@property(nonatomic,assign) CGFloat cellMinY;
///
@property (nonatomic, strong) NSMutableArray<LittleGameInfoModel *> *littleGameArray;
@end
@@ -85,7 +87,7 @@ UIKIT_EXTERN NSString * const kShieldingNotification;
}
-(void)viewDidAppear:(BOOL)animated{
[super viewDidAppear:animated];
self.countDownHelper.delegate = self;
}
@@ -93,7 +95,6 @@ UIKIT_EXTERN NSString * const kShieldingNotification;
-(void)viewDidDisappear:(BOOL)animated{
[super viewDidAppear:animated];
[self.countDownHelper stopCountDown];
self.countDownHelper.delegate = nil;
[[XPSkillCardPlayerManager shareInstance] stopMusic];
if(self.cell != nil){
[self.cell setPlaySoundStatus:NO];
@@ -271,11 +272,11 @@ UIKIT_EXTERN NSString * const kShieldingNotification;
if(self.cell != nil){
if(scrollView.contentOffset.y > self.cellY){
[self.countDownHelper stopCountDown];
self.countDownHelper .delegate = nil;
[[XPSkillCardPlayerManager shareInstance] stopMusic];
[self.cell setPlaySoundStatus:NO];
self.cell = nil;
}
}
if(self.scrollCallback){
self.scrollCallback(scrollView);
@@ -482,6 +483,7 @@ UIKIT_EXTERN NSString * const kShieldingNotification;
self.cell = cell;
CGRect cellRect = [self.tableView rectForRowAtIndexPath:[self.tableView indexPathForCell:self.cell]];
self.cellY = cellRect.origin.y + cellRect.size.height;
self.cellMinY = (cellRect.size.height + self.tableView.frame.size.height);
NSString *fileName = [[roomModel.userVoice componentsSeparatedByString:@"/"] lastObject];
NSString *filePath = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) safeObjectAtIndex1:0] stringByAppendingPathComponent:@"kMineSoundCard"];
NSString *fullPath = [filePath stringByAppendingPathComponent:fileName];
@@ -573,6 +575,7 @@ UIKIT_EXTERN NSString * const kShieldingNotification;
- (CountDownHelper *)countDownHelper{
if (!_countDownHelper){
_countDownHelper = [[CountDownHelper alloc]init];
_countDownHelper.delegate = self;
}
return _countDownHelper;
}