1.SDWebImage
已經(jīng)升級(jí)到4.0.0
SDWebImage 4.0
遷移指南
2.SDWebImage
支持WebP
格式
作者官方說明:
Subspecs
There are 4 subspecs available now: Core, MapKit, GIF and WebP (this means you can install only some of the SDWebImage modules. By default, you get just Core, so if you need WebP, you need to specify it).
Podfile example:
pod 'SDWebImage/WebP'
SDWebImage
本身就支持webp
格式的圖片砂吞。默認(rèn)pod
是SDWebImage/Core
文件向挖,webp
需要pod 'SDWebImage/WebP'
3.pod 'SDWebImage/WebP'
配置
打開Finder
-> command+shift+G
-> 輸入:/etc/hosts
-> 打開https://raw.githubusercontent.com/racaljk/hosts/master/hosts中的內(nèi)容全部復(fù)制到hosts文件中,然后pod
就成功了