问题描述
我试图想出可能的实现,基本上是一个扩展的 UITextView
能够键入内联图像。
有几十个开源项目,我已经看到处理标签的自定义表情符号的创建,UIWebViews绘制您的图像内联与文本等,但没有不会超过原生UITextView行为:
- 自动更正
- 拼写
- 放大镜
- 选择工具提示和功能
- 周期的双倍空间
我在应用商店上看到的唯一一个应用程序,它提供了一个良好的,稳健的打字自定义表情符号的体验是Viber。
所以问题是 - 他们是怎么做到的?非常感谢任何想法,笔记或参考。
谢谢!
I'm trying to come up with possible implementations for what is basically an expanding UITextView
with the capability of typing inline images.
There are literally dozens of open source projects I've seen that handle creation of labels with custom emoticons, UIWebViews that draw your images inline with text and so on, but none that don't run over the native UITextView behavior:
- Autocorrect
- Spelling
- Magnifying glass
- Selection tooltip and capability
- Double space for period
The only app I've seen on the app store that gives a good, robust experience with typing custom emoticons is Viber.
So the question is - how did they do this? Any ideas, notes or references would be greatly appreciated.
Thanks!
The only thing that comes to mind is this, but I've never touched it. You might make something useful if you can make certain code points render the way you want, like the built-in emoji.
这篇关于在iOS上创建良好的自定义表情聊天体验的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!