Skip to content

AVCaptureScannerViewController orientation problem on landscape iPad #100

@Raphael-VG

Description

@Raphael-VG

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions