我正在使用sdimage庫在imageview和圖像url上顯示圖像。 當我使用PNG URL圖像,它完美的工作,但是當我使用.jpg圖像格式網址,然後它不顯示imageview圖像。 代碼: -如何在Swift 3.0中的Imageview上顯示.jpg url圖像
let url = URL.init(string: "http://yeorder.com/api1/img/product/1494571262Nestle Cerelac Baby Cereal With Milk Wheat And Orange.jpg")
imageview.sd_setImage(with: url , placeholderImage: UIImage.init(named: "logo"))
在這裏你得到的輸出'url' –
當我檢查瀏覽器中的URL它顯示的圖像,但是當我在我的ImageView使用URL它不到風度工作 –