MD Singh
MD Singh

Reputation: 1455

How can I use and store emojis in an iOS chat app in my MySQL database

I am creating an app in iOS where users can send messages to each other. These messages are saved in a MySQL database using a service in PHP.

I want to add emojis, so that users can send messages containing an emoji. I researched online but haven't been able to find any information regarding this except some unicodes for emoji icons.

How can I get an emoji from a user in UITextField and save it in my MySQL text field? How can I then display that emoji in UILabel.

Upvotes: 0

Views: 352

Answers (1)

jtbandes
jtbandes

Reputation: 118781

Emoji is just text. NSString supports it. The user must enable the emoji keyboard if they want to type it.

Upvotes: 2

Related Questions