-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathShowCamera.h
31 lines (26 loc) · 1.15 KB
/
ShowCamera.h
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
//
// ShowCamera.h
// mcapp
//
// Created by zhuchao on 14-10-16.
// Copyright (c) 2014年 zhuchao. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "VPImageCropperViewController.h"
@protocol ShowCameraDelegate <NSObject>
-(void)showPickViewController:(UIImagePickerController *)viewController;
-(void)showCropperViewController:(VPImageCropperViewController *)viewController;
-(void)dismissViewController;
-(void)callBackPath:(NSString *)localPath;
@end
@interface ShowCamera : NSObject<UINavigationControllerDelegate,UIImagePickerControllerDelegate,UIActionSheetDelegate,VPImageCropperDelegate>
@property(nonatomic,assign)CGFloat ratio; //宽高比
@property(nonatomic,assign)CGFloat scaledToWidth;//压缩图片宽度
@property(nonatomic,assign)CGFloat imageCompressionQuality;//压缩图片质量
@property(nonatomic,retain)UIViewController *parentController;
-(instancetype)initWithParentController:(UIViewController *)controller delegate:(id<ShowCameraDelegate>)delegate;
- (void)openCamera:(UIImagePickerControllerSourceType)sourceType;
-(void)startCropper:(UIImage *)portraitImg;
-(void)showCameraSheet;
-(void)showCameraSheetWithOutCrop;
@end