公司使用的键盘的一部分,自己写了一个小的demo,开始的实现,是系统表情,解析起来使用很方便,但是安卓那边不统一,所以重新写了一个图片表情键盘,为了和安卓统一起来显示和解析,大家可以参谋一下,这里面解析用了YYLabel,简单粗暴,大家可以试试!
(1)-(void)emojiBtnDidClick:(NSString *)emojiStr
(2)-(void)deleteBtnDicClick:(UIButton *)btn
自定义显示图片的表情键盘,和系统的表情区别就是,系统的显示的时候,不需要特殊解析来显示,而自定义图片表情键盘需要解析图片,并且展示到文本中,这个Demo使用的YYLabel来解析表情,并且完整展示出来,配合使用YYLabel计算文本高度也可以,扩展性也强!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.