Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

Commit

Permalink
Fixing iOS 8 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Combs committed Oct 20, 2016
1 parent 8baede5 commit 3ee9c8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions QRIO.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -303,7 +303,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down
3 changes: 2 additions & 1 deletion QRIO/QRIO.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import UIKit
import AVFoundation
import CoreImage

public class QRInput: NSObject, AVCaptureMetadataOutputObjectsDelegate {
private var session: AVCaptureSession?
Expand Down Expand Up @@ -97,7 +98,7 @@ public extension UIImage {
}

let qrImage = resultImage.imageByApplyingTransform(CGAffineTransformMakeScale(scaleX, scaleY))
let context = CIContext(options: nil)
let context = CIContext()
if let tempImage: CGImageRef = context.createCGImage(qrImage, fromRect: qrImage.extent) {
return UIImage(CGImage: tempImage)
}
Expand Down

0 comments on commit 3ee9c8e

Please sign in to comment.