Emoji in iPhone and How to Enable it with Sample Code

Now a day, we all are using the messaging apps. There is a feature in this kind of app is sending the smileys to show the expression. We have facility to enable keyboard from setting but sometimes we need to create our own custom keyboard according to their preference and requirement.

To send the emoticans we just need to send the unicode characters with backslash. There is a unicode for each smiley.You can check the unicode from the given link: http://apps.timwhitlock.info/emoji/tables/unicode

e.g. Suppose we have to show the smiley in the label then we will set the unicode character in the label text and this label will shows the grinning face with smiling eyes.

label.text = @”\U0001F601″;
We can enable the emoji keyboard from the Setting Screen. Please check the givenย  link to enable Emoji keyboard.
http://osxdaily.com/2011/12/19/enable-emoji-keyboard-iphone/

But we can’t enable the emoji keyboard programmatically in the iPhone application to input the characters in the textfield so we need to create the custom Emoji keyboard. We can create the emoji keyboard by adding the buttons on the scrollView & set the unicode chars in the button title. So button will show the emoticans. When user clicks on the button, we can get the title of the button.

Please click here to get the sample app for more detail.

Written By: Meenakshi Pathani, iPhone Developer, Mindfire Solutions

Advertisements

2 thoughts on “Emoji in iPhone and How to Enable it with Sample Code

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s