修复了个播房切换房间会有一个白色的背景的效果bug
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
self = [super initWithFrame:frame];
|
||||
if(self)
|
||||
{
|
||||
self.backgroundColor = [UIColor clearColor];
|
||||
self.pagingEnabled = YES;
|
||||
self.showsHorizontalScrollIndicator = NO;
|
||||
self.showsVerticalScrollIndicator = NO;
|
||||
@@ -108,18 +109,11 @@
|
||||
|
||||
-(void)scrollViewDidScroll:(UIScrollView *)scrollView {
|
||||
if (scrollView.contentOffset.y > KScreenHeight) {///乡上滚动
|
||||
if (scrollView.contentOffset.y <= (KScreenHeight * 1.5)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!self.animatePlay) {
|
||||
[self startAnimate:self.downDisplayView];
|
||||
}
|
||||
} else {///向下滚动
|
||||
if (self.isCanScrollTop) {
|
||||
if (scrollView.contentOffset.y > (KScreenHeight * 0.5)) {
|
||||
return;
|
||||
}
|
||||
if (!self.animatePlay) {
|
||||
[self startAnimate:self.topDisplayView];
|
||||
}
|
||||
|
@@ -798,7 +798,6 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
|
||||
[self.presenter reportUserOutRoom:[NSString stringWithFormat:@"%ld", self.roomInfo.uid]];
|
||||
[self.functionView onRoomChange];
|
||||
//2、移除房间子控件
|
||||
[self.backContainerView removeFromSuperview];
|
||||
[self.stageView removeFromSuperview];
|
||||
[self.messageContainerView removeFromSuperview];
|
||||
[self.activityContainerView removeFromSuperview];
|
||||
|
Reference in New Issue
Block a user