removed tabs

This commit is contained in:
Alexander Shishkov 2014-02-17 17:37:02 +04:00
parent 9a98cd6e65
commit cc529d971b

View File

@ -279,20 +279,20 @@
self.captureVideoPreviewLayer = [[AVCaptureVideoPreviewLayer alloc] initWithSession:self.captureSession]; self.captureVideoPreviewLayer = [[AVCaptureVideoPreviewLayer alloc] initWithSession:self.captureSession];
if ([self.captureVideoPreviewLayer respondsToSelector:@selector(connection)]) if ([self.captureVideoPreviewLayer respondsToSelector:@selector(connection)])
{ {
if ([self.captureVideoPreviewLayer.connection isVideoOrientationSupported]) if ([self.captureVideoPreviewLayer.connection isVideoOrientationSupported])
{ {
[self.captureVideoPreviewLayer.connection setVideoOrientation:self.defaultAVCaptureVideoOrientation]; [self.captureVideoPreviewLayer.connection setVideoOrientation:self.defaultAVCaptureVideoOrientation];
} }
} }
else else
{ {
// Deprecated in 6.0; here for backward compatibility // Deprecated in 6.0; here for backward compatibility
if ([self.captureVideoPreviewLayer isOrientationSupported]) if ([self.captureVideoPreviewLayer isOrientationSupported])
{ {
[self.captureVideoPreviewLayer setOrientation:self.defaultAVCaptureVideoOrientation]; [self.captureVideoPreviewLayer setOrientation:self.defaultAVCaptureVideoOrientation];
} }
} }
if (parentView != nil) { if (parentView != nil) {
self.captureVideoPreviewLayer.frame = self.parentView.bounds; self.captureVideoPreviewLayer.frame = self.parentView.bounds;
@ -302,9 +302,6 @@
NSLog(@"[Camera] created AVCaptureVideoPreviewLayer"); NSLog(@"[Camera] created AVCaptureVideoPreviewLayer");
} }
- (void)setDesiredCameraPosition:(AVCaptureDevicePosition)desiredPosition; - (void)setDesiredCameraPosition:(AVCaptureDevicePosition)desiredPosition;
{ {
for (AVCaptureDevice *device in [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo]) { for (AVCaptureDevice *device in [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo]) {