CameraViewController.h
729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// CameraView.h
// Camera
//
// Created by wzh on 2017/6/2.
// Copyright © 2017年 wzh. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
@protocol CameraDelegate <NSObject>
- (void)CameraTakePhoto:(UIImage *)image isTakePhoto:(BOOL)isTakePhoto;
@end
@interface CameraViewController : xn_base_BaseViewController
@property (nonatomic, weak)id<CameraDelegate> delegate;
/**
* 裁剪宽高比,当不为0的时候表示最终照片必须裁剪
*/
@property (nonatomic)CGFloat cropAspectRatio;
/**
* 镜头位置(前置/后置)
*/
@property (nonatomic) AVCaptureDevicePosition position;
/**
* 是否默认打开图片库
*/
@property (nonatomic) BOOL isOpenPhotoAlbum;
@end