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

@“123456” 检测包含 emoji 符号 #14

Closed
shengdoushi opened this issue Feb 3, 2016 · 1 comment
Closed

@“123456” 检测包含 emoji 符号 #14

shengdoushi opened this issue Feb 3, 2016 · 1 comment

Comments

@shengdoushi
Copy link

测试环境模拟器 ios 9.2 (13C75), iPhone 6s Plus:

BOOL ok = [@"123456" containsEmoji];

竟然检测 ok 是 YES。

yy版本是:

pod 'YYCategories', '~> 0.9.3'

@ibireme
Copy link
Owner

ibireme commented Feb 25, 2016

这个方法将来会被删除掉。。

Emoji 应该是直接判断文本排版后的结果,而不应该根据字符串来判断,不然在某些地方还是会有问题。不同系统版本,不同显示框架 (UIKit/CoreText) 有时也会有不同的排版结果,所以这里还是把这个方法删掉吧。。

@ibireme ibireme closed this as completed Feb 25, 2016
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

2 participants