QRCode
QRCode copied to clipboard
Crash issue on Xcode8 with swift2.3
Hi,
Below code will be crashed on Xcode8
guard let cgImage = CIContext(options: nil).createCGImage(self, fromRect: self.extent) else { return nil }
'NSInvalidArgumentException', reason: '-[CIContext initWithOptions:]: unrecognized selector
In iOS 8.1.3, Swift 3.0 crash too. Do you solve it? @heqichang
@meigesir I wrote a category by Objective-C, then changed his code call my category method.
@heqichang Me,too😊
use CIContext() , instead of CIContext(options: nil)
I used CIContext() and the crash solved.😊