Tencent / QMUI_iOS

QMUI iOS——致力于提高项目 UI 开发效率的解决方案
http://qmuiteam.com/ios
Other
7.05k stars 1.37k forks source link

在新起的 UIWindow 里对一个 editable = NO 的输入框选中文本出现系统菜单时,菜单被 UIWindow 盖住 #1538

Open MoLice opened 6 months ago

MoLice commented 6 months ago

Bug 表现

如何重现

  1. 打开一个 QMUIModalPresentationViewController
  2. 在里面放一个 UITextView,设置一些文本,并设置其 editable = NO
  3. 打开浮层后长按选中 UITextView 里的文本,使系统菜单出现
  4. 可观察到菜单被浮层盖住

659 里修复过该问题,但由于 iOS 16 开始废弃了 UIMenuController,改为用 UIEditMenuInteraction 代替,所以之前 QMUI 的修复方式也失效了。

其他信息