Newer
Older
XinYang_IOS / YH_Untis / TZImagePickerManager.h
@zhangfeng zhangfeng on 7 Dec 2023 804 bytes 1.8.0
//
//  TZImagePickerManager.h
//  YHScrollView_Test
//
//  Created by Jim on 2021/9/3.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, PickerViewControllerType) {
    PickerViewControllerTypeOfImageCrop,
    PickerViewControllerTypeOfImageDefault,
};

@interface TZImagePickerManager : NSObject

+ (instancetype)shareManager;

/** 选图片*/
-(void)pushPickerViewController:(PickerViewControllerType)type fromViewController:(UIViewController *)vc selectImageNumber:(NSInteger) imageNumber complete:(void(^)(NSArray<UIImage *> *photos, NSArray *assets, BOOL isSelectOriginalPhoto))completeBlock;

/** 拍照*/
-(void)pushCameraViewController:(UIViewController *)currentVC complete:(void(^)(UIImage *cameraImage)) cameraFinshBlock;

@end

NS_ASSUME_NONNULL_END