-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAVCaptureUIViewController.m
More file actions
45 lines (32 loc) · 903 Bytes
/
AVCaptureUIViewController.m
File metadata and controls
45 lines (32 loc) · 903 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
38
39
40
41
42
43
44
45
#import "AVCaptureUIViewController.h"
#if TARGET_OS_IPHONE
#pragma mark -
@implementation AVCaptureUIViewController
@synthesize outletCaptureImageController;
- (void)dealloc
{
[outletCaptureImageController captureTeardown];
ARC_SUPERDEALLOC(self);
}
#pragma mark -
- (void)captureController:(AVCaptureImageController*)controller outputCaptureImage:(CMCaptureImageModel*)image sampleBuffer:(CMSampleBufferRef)sampleBuffer
{
// NSLOG_METHOD(image);
}
- (void)viewDidLoad
{
[super viewDidLoad];
[outletCaptureImageController captureSetup];
}
- (void)viewDidUnload
{
[outletCaptureImageController captureTeardown];
[super viewDidUnload];
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
@end
#endif /* TARGET_OS_IPHONE */