Implement custom emoticon icons for sending and receiving (I have my own images) for the iPhone chat application

how to implement my own emoticon icons for sending and receiving (I have my own images) in the application for iPhone chat, I just need a process to follow this?

+4
source share
1 answer

Step-by-step implementation of smiley icons for sending in the application.

  • Put all smileys icons in the project resources with a specific unique name.
  • Now with a pen and paper, select a unique code for each emoticon icon. Be careful that the code is such that it is usually not used in chat.
  • When a user selects a chat icon, before sending this message, the other side scans it and replaces it with a code (via identifing it unique name ).
  • And on the receiver side before displaying this message, a code with an image will be sent to the user.
  • Therefore, there is no need to send images via communication, this will increase the load on the message size.
  • From the user, the user will feel that these icons are sent through a message, but in fact it will be from local resources.

Hope this helps you. Any thing you want to ask, you can ask in the comments.

+4
source

Source: https://habr.com/ru/post/1496763/


All Articles