移除ios扫描界面的横竖屏自动切换

This commit is contained in:
2019-06-14 10:21:02 +08:00
parent dd87689825
commit ef6aa9617e

View File

@@ -1161,7 +1161,7 @@ parentViewController:(UIViewController*)parentViewController
- (BOOL)shouldAutorotate
{
return YES;
return NO;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
@@ -1171,7 +1171,7 @@ parentViewController:(UIViewController*)parentViewController
- (NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskAll;
return UIInterfaceOrientationMaskPortrait;
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation