环信IM没有直接支持发送GIF图片,而是直接取其第一张图直接发送,所以首先要获取GIF动图:
在 UIImagePickerControllerDelegate 调用代理取出

其中取到的GIF图类型为UIAnimatedImage 类型,8张

取到图后,需要用文件的方式发送message消息体:

在cell里显示即可:

效果:

环信IM没有直接支持发送GIF图片,而是直接取其第一张图直接发送,所以首先要获取GIF动图:
在 UIImagePickerControllerDelegate 调用代理取出
其中取到的GIF图类型为UIAnimatedImage 类型,8张
取到图后,需要用文件的方式发送message消息体:
在cell里显示即可:
效果:
本文标题:环信发送GIF图
本文链接:https://www.haomeiwen.com/subject/yvjgittx.html
网友评论