JDSwiftAvatarProgress 1.0.3

JDSwiftAvatarProgress 1.0.3

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最后发布2015年10月
SPM支持SPM

David López CarrascalJuanpe Catalán维护。



JDSwiftAvatarProgress

Objective-C

JDAvatarProgress也提供Objective-C版本。

JDAvatarProgress

用法

要运行示例项目,首先克隆仓库,然后从Example目录中运行pod install

安装

JDSwiftAvatarProgress通过CocoaPods可用。安装它,只需将以下行添加到您的Podfile中

pod "JDSwiftAvatarProgress"

手动

克隆仓库

$ git clone https://github.com/JellyDevelopment/JDSwiftAvatarProgress.git

JDAvatarProgress.swift文件拖放到您的项目中。将import JDSwiftAvatarProgress添加到所有需要使用它的视图控制器中。

要求

QuartzCore.framework

示例用法

self.avatarImgView.setImageWithURL(NSURL(string: "http://3.bp.blogspot.com/-k-0O0FocJ2I/TyWbextRGlI/AAAAAAAACqo/GuPx0RH7PcY/s1600/Fondo+Pantalla.jpg")!)

高级用法

self.avatarImgView.setImageWithURL(NSURL(string: "http://3.bp.blogspot.com/-k-0O0FocJ2I/TyWbextRGlI/AAAAAAAACqo/GuPx0RH7PcY/s1600/Fondo+Pantalla.jpg")!,
    placeholder: nil,
    progressBarColor: UIColor.orangeColor(),
    progressBarLineWidth: JDAvatarDefaultProgressBarLineWidth,
    borderColor:nil,
    borderWidth: JDAvatarDefaultBorderWidth,
    completion: { (image, error) -> Void in

    print("image => \(image)")
    print("error => \(error)")
    print("------------------")
})

作者

  • Jelly Development
    • Juanpe Catalán, [email protected]
    • David Carrascal, [email protected]

许可证

JDSwiftAvatarProgress在MIT许可证下可用。有关更多信息,请参阅LICENSE文件。