# CaptureImagePro **Repository Path**: insistentstruggle/CaptureImagePro ## Basic Information - **Project Name**: CaptureImagePro - **Description**: 通过AVFoundation自定义摄像机 - **Primary Language**: Objective-C - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-23 - **Last Updated**: 2021-01-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CaptureImagePro 通过AVFoundation自定义摄像机 ## 使用很简单 - 可通过Cocoapod安装 - `pod "CaptureImagePro" ` - 效果 ![](CaptureImagePro/captureImage.gif) - 包含头文件 `#import "SLQCameraViewController/SLQCameraViewController.h"` - 直接使用,通过block回调image ```objc /** * 拍照 */ - (void)takePhoto { __weak typeof (self)weakSelf = self; SLQCameraViewController *vc = [[SLQCameraViewController alloc] init]; [vc getImageBlock:^(UIImage *image, UIViewController *controller) { weakSelf.imageView.image = image; [controller dismissViewControllerAnimated:YES completion:nil]; }]; [self presentViewController:vc animated:YES completion:nil]; } ```