iOS开发从相册选择照片或拍照
一行代码搞定图片选择 // // gzhPhotoManager.h // 图片选择 // // Created by 郭志贺 on 2020/5/26. // Copyright © 2020 郭志贺. All rights reserved. // #import <Foundation/Foundation.h> #import " ViewController.h " NS_ASSUME_NONNULL_BEGIN @protocol gzhPhotoManagerDelegate; @interface gzhPhotoManager : NSObject + (instancetype)instance; /// 选择图片 /// @param controller 当前控制器 /// @param target 代理 /// @param pSize 选择照片尺寸 尺寸传(0,0)不进行裁剪 - ( void )selectPhotoWithController:(UIViewController *)controller delegate :( id )target size:(CGSize)pSize; @end @protocol gzhPhotoManagerDelegate <NSObject> - ( void )selectedPhotoImage: