[ iOS ]SDWebImage 顯示網路上圖片在ImageView中

SDWebImage


下載點

安裝 : 下載zip檔案後解壓縮  將 SDWebImage 資料夾拖曳到專案裡

使用 :

  1. 網路上隨便找三張圖片取得圖片網址 
  2. import 

  3. #import "UIImageView+WebCache.h"
    
    //物件
    _weak IBOutlet UIImageView *imgv1;
    
    //方法內使用
    [imgv1 sd_setImageWithURL:[NSURL URLWithString:@"網址"]];
    


留言