开发者

how to encode uiimageview in ios

开发者 https://www.devze.com 2023-02-02 11:08 出处:网络
i have a u开发者_运维知识库ser who has a avatar, i use uiimageview to save this avatar, so how can i encode avatar ? or you can give me a suggestion, how to encode user\'s avatar(image).You can use UI

i have a u开发者_运维知识库ser who has a avatar, i use uiimageview to save this avatar, so how can i encode avatar ? or you can give me a suggestion, how to encode user's avatar(image).


You can use UIImagePNGRepresentation() to convert a UIImage to a NSData which can be turned back to an UIImage again.

0

精彩评论

暂无评论...
验证码 换一张
取 消