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

V4.1.2 QMUIModalPresentationViewController 调用hideWithAnimated无法关闭 #983

Closed
tanranran opened this issue May 8, 2020 · 2 comments

Comments

@tanranran
Copy link

tanranran commented May 8, 2020

Bug 表现
问题的具体描述
升级到4.1.2 QMUIModalPresentationViewController 调用hideWithAnimated无法关闭
降级到4.1.1之前r 调用hideWithAnimated可以关闭

看了下4.1.2的修订记录+调试,发现在hideWithAnimated中新增了if (self.visible) return;,而self.visible=YES 时的赋值似乎有问题

截图

如何重现
`
UIView *contentView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 300, 208)];
contentView.backgroundColor = UIColor.qd_backgroundColorLighten;
contentView.layer.cornerRadius = 6;
QMUIModalPresentationViewController *modalViewController = [[QMUIModalPresentationViewController alloc] init];
[modalViewController.view addSubview:contentView];
[modalViewController showWithAnimated:YES completion:nil];
[modalViewController hideWithAnimated:NO completion:nil];

`

预期的表现
调用hideWithAnimated可以关闭

其他信息

  • 设备:[iPhone]
  • iOS 版本: [iOS 13.4]
  • Xcode 版本: [Xcode 11.4]
  • QMUI 版本: [4.1.2]
@peter2022Begin
Copy link

如果用4.1.3也会出现是吗

@MoLice
Copy link
Collaborator

MoLice commented Sep 29, 2020

已发布 4.2.1 修复该问题。

@MoLice MoLice closed this as completed Sep 29, 2020
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

3 participants