Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于继续队列显示的问题 #196

Open
szmichaelyb opened this issue Aug 17, 2024 · 1 comment
Open

关于继续队列显示的问题 #196

szmichaelyb opened this issue Aug 17, 2024 · 1 comment

Comments

@szmichaelyb
Copy link

szmichaelyb commented Aug 17, 2024

遇到的问题:

队列中某个弹窗已经显示。这个时候,我们我们因为某些业务场景,需要不显示当前弹窗。展示别的内容,操作完相关业务后,再回到先前展示弹窗的页面,继续展示弹窗。内容空白

image

查看视图层,发现,弹窗容器的子视图(自定义视图)清空了,并未被成功加载进来:

image

正常来说,这里应该是这样的:

image

实现代码截图:

image

实现代码:

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear: animated];
    if (!LEEAlert.isQueueEmpty) { /// 队列不为空
        LEEAlert.getAlertWindow.hidden = YES;
    }
}

- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    if (!LEEAlert.isQueueEmpty) { /// 队列不为空
        LEEAlert.getAlertWindow.hidden = NO;
        [LEEAlert continueQueueDisplay];
    }
}
@lixiang1994
Copy link
Owner

可以试一下 为你的alert设置.LeeContinueQueue(NO), 不要调用LEEAlert.getAlertWindow.hidden = NO;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants