Skip to content

Commit

Permalink
Merge pull request #83 from vijaysingh-axway/MOD-2460
Browse files Browse the repository at this point in the history
[MOD-2460] : ti.barcode iOS - On device rotation scanner UI get distorted
  • Loading branch information
hansemannn authored Sep 19, 2018
2 parents 516dcbc + 2a28989 commit 1717bc6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/Classes/TiBarcodeViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,12 @@ - (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];

[_overlayView updateViewsWithFrame:[UIScreen mainScreen].bounds];
[[self view] addSubview:_overlayView];
[[self view] bringSubviewToFront:_overlayView];
#if HAS_AVFF
_scanner.previewLayer.frame = _overlayView.frame;
#endif
}

- (void)viewWillDisappear:(BOOL)animated
Expand Down

0 comments on commit 1717bc6

Please sign in to comment.