[[string stringByRemovingPercentEncoding] stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]]
項(xiàng)目中對(duì)url進(jìn)行了拼接频祝,然后使用上述方法對(duì)url轉(zhuǎn)碼稳诚,導(dǎo)致url為空
建議朦前,僅對(duì)需要轉(zhuǎn)碼的部分轉(zhuǎn)碼
ps:
使用七牛云鏈接 拼接轉(zhuǎn)webp裂七,
imageMogr2/auto-orient/thumbnail/100x100/quality/50/format/webp
若有中文唬格,還會(huì)報(bào)錯(cuò)家破。將imageMogr2方法改imageslim解決問題
imageslim/auto-orient/thumbnail/100x100/quality/50/format/webp
設(shè)置圓角,不多拼接购岗,避免錯(cuò)誤
?roundPic/radius/!50p