I have to show the textview text smily in UILabel.
In the UILabel -
lbl.text = @"Happy to help you \U0001F431;
its showing properly.
In UITextView
-
I tried to convert UITextView
text in string and then log is -
%F0%9F%99%88%F0%9F%99%89%F0%9F%99%8A
How to encode which i can show in UILabel
, anybody please suggest me.
Swift 3.0 solution update given by @Bhavesh Nayi
and Send it to Chat Server as a
and Then Show emoji to UILablel
You can use
⌃ ⌘ Space
shortcut to show the symbols panels and just insert the emoji you're looking for directly without unicode:In case of swift 2.3 or lower
In Case of Swift 3.0 or higher
SWIFT - 3 OR HIGHER
On Xcode version 7.2.1, You can use the below shortcut to show the symbols panels and insert the emoji:
shortcut: (pressed the below three keys together)