美文网首页
UIImage(WebP)分类说明

UIImage(WebP)分类说明

作者: _阿南_ | 来源:发表于2017-09-21 19:44 被阅读40次

声明处: UIImage+WebP.h


任务

  • - sd_webpLoopCount
  • + sd_imageWithWepData:

类方法

sd_imageWithWebPData:

+ (nullable UIImage *)sd_imageWithWebPData:(nullable NSData *)data

实例方法

ssd_WebpLoopCount

- (NSInteger)sd_webpLoopCount

讨论

获取当前WebP图片的循环次数,默认值为0.静态WebP图片,默认值为0.动画WebP图片,0表示无限制的重复动画。注意,因为分类的限制,如果你根据CGImage或其他方法创建一个实例,那么这个属性可能不同步。

返回值

WebP图片循环数。

声明处

UIImage+WebP.h

// END

相关文章

网友评论

      本文标题:UIImage(WebP)分类说明

      本文链接:https://www.haomeiwen.com/subject/asytextx.html