测试已测试 | ✗ |
语言语言 | SwiftSwift |
许可证 | MIT |
发布最后发布 | 2015年10月 |
SPM支持SPM | ✗ |
由David López Carrascal,Juanpe Catalán维护。
JDAvatarProgress也提供Objective-C版本。
要运行示例项目,首先克隆仓库,然后从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("------------------")
})
JDSwiftAvatarProgress在MIT许可证下可用。有关更多信息,请参阅LICENSE文件。