Skip to content
This repository was archived by the owner on Jul 17, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CDZQRScanningViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
static AVCaptureVideoOrientation CDZVideoOrientationFromInterfaceOrientation(UIInterfaceOrientation interfaceOrientation)
{
switch (interfaceOrientation) {
#ifdef __IPHONE_8_0
case UIInterfaceOrientationUnknown:
#endif
case UIInterfaceOrientationPortrait:
return AVCaptureVideoOrientationPortrait;
break;
Expand Down