iOS个人修养IOSiOS开发工具

[FGWebImage]A Swift async load i

2016-09-13  本文已影响38人  CGPointZero

FGWebImage

..............................................................

Introduction

An Categoryension build in Swift 3.0 for UIImageView and A light-weight framework of async loading image like SDWebImage.

Installtion

Manual:

Download This Project and drag the FGWebImage folder into your peroject, do not forget to ensure "copy item if need" being selected.

Usage

Aync load image example:

let frm=CGRect.init(x: 20, y: 80, width: self.view.bounds.size.width-40, height:400)
let imv=UIImageView.init(frame: frm)
self.view?.addSubview(imv)
let urlString="http:https://img.haomeiwen.com/i937405/e91a649f7a7df2a0.jpeg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240"
imv.fg_setImageWithUrl(urlString: urlString, placeHolder: nil)

About Me

Blog: CGPointZeero
GitHub: Insfgg99x
Mooc: CGPointZero
Jianshu: CGPointZero
Email: newbox0512@yahoo.com

I attached my code on github,touch to download:->FGWebImage
..............................................................
@CGPoitZero

上一篇 下一篇

猜你喜欢

热点阅读