File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ - (void)viewWillAppear:(BOOL)animated {
248
248
249
249
[self adjustCameraPreviewLayerOrientaion: self .interfaceOrientation];
250
250
251
- canRotate = YES ;
251
+ canRotate = NO ;
252
252
}
253
253
254
254
- (void )viewWillDisappear : (BOOL )animated {
@@ -266,7 +266,9 @@ - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrie
266
266
- (BOOL )shouldAutorotateToInterfaceOrientation : (UIInterfaceOrientation)interfaceOrientation {
267
267
// I can't understand the orienation behavior of view controllers.....
268
268
// Recommend that you don't overide this method... or please help me.
269
- return canRotate;
269
+ if (canRotate)
270
+ return YES ;
271
+ return (interfaceOrientation == UIInterfaceOrientationPortrait);
270
272
}
271
273
272
274
#pragma mark - AVCaptureVideoDataOutputSampleBufferDelegate
You can’t perform that action at this time.
0 commit comments