修复了个播房切换房间会有一个白色的背景的效果bug

This commit is contained in:
fengshuo
2022-08-19 18:29:07 +08:00
parent d03a038bfc
commit 2a1bec5ecb
2 changed files with 1 additions and 8 deletions

View File

@@ -34,6 +34,7 @@
self = [super initWithFrame:frame]; self = [super initWithFrame:frame];
if(self) if(self)
{ {
self.backgroundColor = [UIColor clearColor];
self.pagingEnabled = YES; self.pagingEnabled = YES;
self.showsHorizontalScrollIndicator = NO; self.showsHorizontalScrollIndicator = NO;
self.showsVerticalScrollIndicator = NO; self.showsVerticalScrollIndicator = NO;
@@ -108,18 +109,11 @@
-(void)scrollViewDidScroll:(UIScrollView *)scrollView { -(void)scrollViewDidScroll:(UIScrollView *)scrollView {
if (scrollView.contentOffset.y > KScreenHeight) {/// if (scrollView.contentOffset.y > KScreenHeight) {///
if (scrollView.contentOffset.y <= (KScreenHeight * 1.5)) {
return;
}
if (!self.animatePlay) { if (!self.animatePlay) {
[self startAnimate:self.downDisplayView]; [self startAnimate:self.downDisplayView];
} }
} else {/// } else {///
if (self.isCanScrollTop) { if (self.isCanScrollTop) {
if (scrollView.contentOffset.y > (KScreenHeight * 0.5)) {
return;
}
if (!self.animatePlay) { if (!self.animatePlay) {
[self startAnimate:self.topDisplayView]; [self startAnimate:self.topDisplayView];
} }

View File

@@ -798,7 +798,6 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
[self.presenter reportUserOutRoom:[NSString stringWithFormat:@"%ld", self.roomInfo.uid]]; [self.presenter reportUserOutRoom:[NSString stringWithFormat:@"%ld", self.roomInfo.uid]];
[self.functionView onRoomChange]; [self.functionView onRoomChange];
//2 //2
[self.backContainerView removeFromSuperview];
[self.stageView removeFromSuperview]; [self.stageView removeFromSuperview];
[self.messageContainerView removeFromSuperview]; [self.messageContainerView removeFromSuperview];
[self.activityContainerView removeFromSuperview]; [self.activityContainerView removeFromSuperview];