Detect if a user has typed an emoji character in UITextView

前端 未结 9 1675
醉话见心
醉话见心 2020-12-05 08:13

I have a UITextView and I need to detect if a user enters an emoji character.

I would think that just checking the unicode value of the newest character would suffic

9条回答
  •  一向
    一向 (楼主)
    2020-12-05 08:48

    if your do not want your keyboard to show emoji you can use YOURTEXTFIELD/YOURTEXTVIEW.keyboardType = .ASCIICapable
    This will show a keyboard with no emoji

提交回复
热议问题