Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVCaptureScannerViewController orientation problem on landscape iPad #100

Closed
Raphael-VG opened this issue Mar 31, 2014 · 0 comments
Closed

Comments

@Raphael-VG
Copy link

When using the Scan method, to show the scanner interface on an iPad (iOS7) in landscape mode, the black background with the centered activity indicator only covers 2/3 of the screen for about 1sec.

The reason for this is line 30 in AVCaptureScannerViewController.cs:
var appFrame = UIScreen.MainScreen.ApplicationFrame;

The mainscreen's frame doesn't respect device orientation, therefor height > width.
Maybe one solution could be to use the bounds of the root view controller's view.

@Redth Redth closed this as completed in e45daf0 Mar 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant