iOS 写了一个七牛单个和批量上传图片的包, 和大家分享下 ( 主要是官方的不好用

hlcfan · January 20, 2014 · Last by forever7776 replied at May 31, 2016 · 13493 hits

主要还是官方提供的不太好用,,,自己写了个. https://github.com/hlcfan/QiniuUploader

就是封装了一下,对外提供了三个接口:

+ (NSDictionary *)prepareUploadContent:(NSDictionary *)theInfo filename:(NSString *)filename format:(NSString*)format bucket: (NSString *)bucket imageCompress:(UIImage*(^)(UIImage *image)) block;

- (id)initWithAccessKey:(NSString *)accessKey secretKey:(NSString *)secretKey;

- (BOOL)startUploadFiles:(NSArray *)uploadArray progress:(void(^)(float percentage))progressBlock complete:(void(^)(NSMutableDictionary *result)) block;
No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.