Skip to content

基于Swift 2.0又拍云SDK(包含上传和下载功能)

Notifications You must be signed in to change notification settings

Geek0x0/UPYUN-Swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UPYUN-Swift

WeiBo ghit.me Language Platform Issues

Swift 2.0 环境下使用又拍云HTTP REST API的封装
不依赖于其它第三方库

##编译环境

  • iOS 8.0+
  • Xcode 7.0 beta 6+

##使用说明 使用SDK:

import UpYunSDK

上传初始化:

let upload: UPYUN = UPYUN(SpaceName: "空间名", 
  OperatorName: "操作员名", OperatorPasswd: "操作员密码")

上传操作:(可上传多个图片)

upload.uploadImages(images: [UIImage], names: [String], uploadPath: String, 
imageCompressionQuality: CGFloat)

上传结果处理:

upload.setNotification(finishAction: (()->Void),errorAction: (()->Void))

下载操作(静态方法):

UPYUN.downloadImage(imageURL: String, imageView: UIImageView?, waitView: UIView?)

About

基于Swift 2.0又拍云SDK(包含上传和下载功能)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published