Skip to content

Commit

Permalink
Updated sample app to support scanning in multiple orientations
Browse files Browse the repository at this point in the history
  • Loading branch information
Cerovec committed Aug 26, 2015
1 parent 9f28b13 commit 7e97b47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Samples/BlinkID-sample/BlinkID-sample/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ - (IBAction)didTapScan:(id)sender {
/** Allocate and present the scanning view controller */
UIViewController<PPScanningViewController>* 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];
}
Expand Down

0 comments on commit 7e97b47

Please sign in to comment.