Comments (4)
虽然不知道具体情况,但是感觉应该是因为转义而发生你说的情况。 转义来转义去,多次转义了什么的。你得仔细瞅瞅你复制出来的玩意和以前的那个哪里不一致,实在不行挨个char比对。
然后表情字符转换成表情的原理其实很简单,就是字符串通过正则匹配出哪块代表表情字符,然后将其剔除替换成表情图像放到NSAttributedString
里。
所以你该有那个正则吧,网上搜个正则测试器,辅助测试你的串问题出在哪啊。
其他的也就帮不上你了~
from mllabel.
他发送过来的直接显示表情,然后我从后台拿到的那个表情的字符串,然后复制粘贴 输入 就不能转成表情了~~头大~
from mllabel.
@jerroy 如果他发送过来的你直接丢到UILabel上都直接显示表情的话,那说明他发送过来的不是自定义表情,而是emoji表情,就是unicode编码,后台给的不能用只能说明中间被安卓那边做了些处理了吧。 具体不清楚。 你肯定还是需要将俩字符串拿出来细致比对不同来定位问题啊。
from mllabel.
恩恩 谢谢你哈 有点思路了
from mllabel.
Related Issues (20)
- copy文本的功能 HOT 1
- 数字会自动另起一行 HOT 1
- MLLinkLabel 数字换行问题 HOT 1
- We need to load emoji image other than from bundle
- 话题俩井号,第二个井号不识别 HOT 2
- 给label添加一个点击事件后 link事件被覆盖了 这个优先级怎么设置 HOT 1
- 能可选的进行复制吗? HOT 1
- 我想长按复制可以显示阴影,但是单击也会显示阴影,怎么去掉单击出现的阴影 HOT 1
- 有没有办法将AttributedString转回普通String HOT 3
- 看看这个问题,大量的数据加载太慢了 HOT 4
- Label 文字绘制对齐顶部
- 字符串有多个\n出现的问题 HOT 1
- 文字和字母或者数字混排,出现字母重叠的情况,有图 HOT 1
- 当MLLinklabel添加单击事件UITapGestureRecognizer的时候,导致didClickLink失效 HOT 1
- HTML字符串中 带图片地址的,虽然显示没问题,但是无法获取图片点击事件
- 关于Swift版本 HOT 1
- 对整个label HOT 2
- 在MLLinkLabel上面增加长按手势(UILongPressGestureRecognizer)以后,怎么出现一条横线呢
- 是否支持 选择 复制功能? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mllabel.