简体   繁体   中英

How do i display an image as a emoji in swift?

我是一个相对较新的程序员,试图学习ios,因此我想弄清楚如何转换按下时在消息中显示的键盘上的图像(表情符号)。在此先感谢您的任何帮助

I'm strongly recommend to you to use instead of UImageView the UILabel. You can set Autoshrink to Minimum Font Scale / Minimum Font Size , then set the font.pointSize to something really big like 100 / 200 what ever. Then your emoji text will stretched to maximum fontSize to fit UILabel frame size

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM