From 7e97b47be7ac8c2aff25b55b31b0e22e3242e705 Mon Sep 17 00:00:00 2001 From: Jurica Cerovec Date: Wed, 26 Aug 2015 11:32:14 +0200 Subject: [PATCH] Updated sample app to support scanning in multiple orientations --- Samples/BlinkID-sample/BlinkID-sample/ViewController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Samples/BlinkID-sample/BlinkID-sample/ViewController.m b/Samples/BlinkID-sample/BlinkID-sample/ViewController.m index 4ab48ac4..1151eb15 100644 --- a/Samples/BlinkID-sample/BlinkID-sample/ViewController.m +++ b/Samples/BlinkID-sample/BlinkID-sample/ViewController.m @@ -103,6 +103,10 @@ - (IBAction)didTapScan:(id)sender { /** Allocate and present the scanning view controller */ UIViewController* scanningViewController = [coordinator cameraViewControllerWithDelegate:self]; + // allow rotation if VC is displayed as a modal view controller + scanningViewController.autorotate = YES; + scanningViewController.supportedOrientations = UIInterfaceOrientationMaskAll; + /** You can use other presentation methods as well */ [self presentViewController:scanningViewController animated:YES completion:nil]; }