房间相册模块
This commit is contained in:
@@ -64,6 +64,8 @@ UIKIT_EXTERN NSString * const kShieldingNotification;
|
||||
@property(nonatomic,strong)XPNewHomePartyTableViewCell *cell;
|
||||
///正在播放声音的cell在UITableView的Y坐标
|
||||
@property(nonatomic,assign) CGFloat cellY;
|
||||
///正在播放声音的cell在UITableView的Y坐标
|
||||
@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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user