美文网首页iOS个人修养IOSiOS开发工具
[FGWebImage]A Swift async load i

[FGWebImage]A Swift async load i

作者: CGPointZero | 来源:发表于2016-09-13 18:39 被阅读38次

    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

    相关文章

      网友评论

        本文标题:[FGWebImage]A Swift async load i

        本文链接:https://www.haomeiwen.com/subject/zinmettx.html