Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/zekunyan/uitextviewdiyemojiexample
- Owner: zekunyan
- Created: 2015-03-07T17:00:22.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-13T17:49:36.000Z (over 7 years ago)
- Last Synced: 2024-05-01T14:38:22.004Z (7 months ago)
- Topics: demo, emoji, ios, objective-c, uitextview
- Language: Objective-C
- Size: 250 KB
- Stars: 149
- Watchers: 8
- Forks: 39
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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]