Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zekunyan/uitextviewdiyemojiexample

Example of insert custom emoji image in to UITextView. And get the represent string back after editing.
https://github.com/zekunyan/uitextviewdiyemojiexample

demo emoji ios objective-c uitextview

Last synced: about 3 hours ago
JSON representation

Example of insert custom emoji image in to UITextView. And get the represent string back after editing.

Awesome Lists containing this project

README

        

## Example of adding custom Emoji image to UITextView

### Gif example
![image](https://github.com/zekunyan/UITextViewDIYEmojiExample/raw/master/Resources/blog_resizable_nstextattachment_1.gif)

### How it work

1. Extend NSTextAttachment to save emoji tag string. [Blog](http://tutuge.me/2015/03/07/UITextView%E7%BC%96%E8%BE%91%E6%97%B6%E6%8F%92%E5%85%A5%E8%87%AA%E5%AE%9A%E4%B9%89%E8%A1%A8%E6%83%85-%E7%AE%80%E5%8D%95%E7%9A%84%E5%9B%BE%E6%96%87%E6%B7%B7%E7%BC%96/)
2. Override NSTextAttachmentContainer method. [Blog](http://tutuge.me/2015/04/21/resizable-nstextattachment/)

### Contact me
[email protected]