主要还是官方提供的不太好用,,,自己写了个. 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;