25 lines
545 B
C
25 lines
545 B
C
|
|
//
|
|||
|
|
// UIImage+UploadImage.h
|
|||
|
|
// app
|
|||
|
|
//
|
|||
|
|
// Created by binbins on 2019/4/2.
|
|||
|
|
// Copyright © 2019 zhifanYoung. All rights reserved.
|
|||
|
|
//
|
|||
|
|
|
|||
|
|
#import <UIKit/UIKit.h>
|
|||
|
|
|
|||
|
|
NS_ASSUME_NONNULL_BEGIN
|
|||
|
|
|
|||
|
|
@interface UIImage (UploadImage)
|
|||
|
|
|
|||
|
|
/// 把图片上传到服务器,并返回url
|
|||
|
|
/// @param finishBlock url 和 原始图片
|
|||
|
|
- (void)uploadToServiceWithBlock:(void(^)(NSString *upUrl, UIImage *upImage))finishBlock;
|
|||
|
|
|
|||
|
|
//不显示上传提示
|
|||
|
|
//- (void)uploadToServiceNoLoadingWithNoTipsWithBlock:(void(^)(NSString *url))finishBlock;
|
|||
|
|
|
|||
|
|
@end
|
|||
|
|
|
|||
|
|
NS_ASSUME_NONNULL_END
|