开发者

how to encode uiimageview in ios

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜