Created
September 16, 2014 20:28
-
-
Save HeidiHansen/f9aa03a7a7e9853ed232 to your computer and use it in GitHub Desktop.
10. THCameraViewController.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
#import <AVFoundation/AVFoundation.h> | |
#import "THCameraButton.h" | |
@protocol THCameraDelegateProtocol <NSObject> | |
-(void)takePhotoTapped:(UIImage *)image; | |
@end | |
@interface THCameraViewController : UIViewController | |
@property (strong, nonatomic) UIButton *flashButton; | |
@property (nonatomic, weak) id <THCameraDelegateProtocol> delegate; | |
@property (strong, nonatomic) THCameraButton *takePhotoButton; | |
@property(nonatomic, retain) AVCaptureStillImageOutput *stillImageOutput; | |
@property (weak, nonatomic) UISegmentedControl *frontBackToggle; | |
@property (nonatomic) BOOL frontCamera; | |
@property (nonatomic) CGRect photoCropRect; | |
- (void)toggleBetweenCameras:(id)sender; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment