cdts/xdts-ios 3/TreeHole/Code/Utility/ImagePicker/UIImage+PHAsset.h
2023-07-27 09:20:00 +08:00

24 lines
417 B
Objective-C

//
// UIImage+PHAsset.h
// QSport
//
// Created by ko1o on 2018/12/7.
// Copyright © 2018年 ko1o. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@class PHAsset;
@interface UIImage (PHAsset)
+ (void)getImageDataFromAsset:(PHAsset *)asset completion:(void(^)(NSData *imgData,NSString *suffix))completion;
+ (id)getImageWithContentFile:(NSString *)file;
@end
NS_ASSUME_NONNULL_END