修复了个播房切换房间会有一个白色的背景的效果bug
This commit is contained in:
@@ -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];
|
||||||
}
|
}
|
||||||
|
@@ -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];
|
||||||
|
Reference in New Issue
Block a user