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

在UITextView或者UITextField中输入apple键盘左下角的emoji导致崩溃 #1511

Open
withviolet opened this issue Aug 9, 2023 · 4 comments

Comments

@withviolet
Copy link

Bug 表现
我创建一个UITextView,点击textview,点击键盘左下角的emoji选择任意emoji输入后崩溃

截图
image

如何重现

  1. 集成QMUIKit,在UITextview中输入emoji,就会崩溃

其他信息

  • 设备: iPhone14 128G
  • iOS 版本: iOS16.6
  • Xcode 版本: Xcode 14.3.1
  • QMUI 版本: 4.7.0
@withviolet withviolet changed the title 在UITextView中输入apple键盘左下角的emoji导致崩溃 在UITextView或者UITextField中输入apple键盘左下角的emoji导致崩溃 Aug 9, 2023
@SunshineDays
Copy link

我也遇到了这个问题,不知道咋解决,把QMUIKit给移除了

@theskyQQ
Copy link

同遇到这个问题

@wsrGitHub
Copy link

wsrGitHub commented Jan 22, 2024

是不是用系统字符串截取方法substringfromindex或substringtoindex,如果字符串中存在表情符号,那截取就可能出问题。
试试用NSString+QMUI类中有其他截取API可以代替系统NSString截取相关。

@MoLice
Copy link
Collaborator

MoLice commented Jan 25, 2024

后续版本会屏蔽,在此之前可以用以下文件替换本地同名文件来临时解决。
QMUIStringPrivate.m.zip

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

5 participants