QMUI_iOS icon indicating copy to clipboard operation
QMUI_iOS copied to clipboard

V4.1.2 QMUIModalPresentationViewController 调用hideWithAnimated无法关闭

Open ByteRax opened this issue 6 years ago • 2 comments

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]

ByteRax avatar May 08 '20 09:05 ByteRax

如果用4.1.3也会出现是吗

peter2022Begin avatar May 26 '20 02:05 peter2022Begin

已发布 4.2.1 修复该问题。

MoLice avatar Sep 29 '20 09:09 MoLice