lixiang1994 / LEEAlert

优雅的可自定义 Alert ActionSheet
MIT License
1.3k stars 204 forks source link

特定Viewcontroller下两个弹窗加入队列中,会出现弹多一次情况 #160

Closed aloow closed 2 years ago

aloow commented 2 years ago
- (IBAction)butTap:(id)sender {
    [self showTestAlert];
}

-(void)showTestAlert {
    // 指定窗口弹窗
    [LEEAlert alert].config
    .LeeTitle(@"alert 1")
    .LeeCancelAction(@"取消", nil)
    .LeeAction(@"确认", nil)
    .LeePresentation([LEEPresentation viewController:self.tabBarController])
    .LeeIdentifier(@"1")
    .LeeQueue(YES) // 添加到队列
    .LeeShow();

    // 指定窗口弹窗
    [LEEAlert alert].config
    .LeeTitle(@"alert 2")
    .LeeCancelAction(@"取消", nil)
    .LeeAction(@"确认", nil)
    .LeePresentation([LEEPresentation viewController:self.tabBarController])
    .LeeIdentifier(@"2")
    .LeeQueue(YES) // 添加到队列
    .LeeShow();
}
`

https://user-images.githubusercontent.com/13618139/144975696-968afa2b-bc8d-4221-9554-dd67454e075b.mov

``
lixiang1994 commented 2 years ago

好的, 我看一下

aloow commented 2 years ago
aloow commented 2 years ago

好的, 我看一下 你好,这个问题有复现吗?下一个更新版本能解决吗。打扰了

lixiang1994 commented 2 years ago

已更新至: 1.5.2

lixiang1994 commented 2 years ago

感谢🙏🏻