Skip to content

Instantly share code, notes, and snippets.

@HeidiHansen
Created September 16, 2014 20:28
Show Gist options
  • Save HeidiHansen/f9aa03a7a7e9853ed232 to your computer and use it in GitHub Desktop.
Save HeidiHansen/f9aa03a7a7e9853ed232 to your computer and use it in GitHub Desktop.
10. THCameraViewController.h
#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