gpt4 book ai didi

iphone - 如何在UITextview/UILabel中使用自定义表情?

转载 作者:行者123 更新时间:2023-11-29 11:02:08 25 4
gpt4 key购买 nike

我正在开发一个 Messenger 跨平台应用程序。我想使用我的自定义图像集作为表情符号。在寻找使用现有表情符号可以找到的解决方案时。首先我计划在 IOS 中开发。任何有值(value)的建议/示例代码将是可观的

最佳答案

长话短说,您很难成功使用 UITextView/UILabel。

备选方案是:

  • UIWebView
  • 核心文本设施
  • 在 UITextView 上叠加表情符号

引自一好answer :

You would be better off using a UIScrollView and managing UITextViews and UIImageViews in it. UITextView doesn't support adding image inline with text. In fact, it doesn't really support anything other than multiline text.

关于iphone - 如何在UITextview/UILabel中使用自定义表情?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15381163/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com