QRCode icon indicating copy to clipboard operation
QRCode copied to clipboard

Crash issue on Xcode8 with swift2.3

Open heqichang opened this issue 9 years ago • 4 comments

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

heqichang avatar Oct 09 '16 08:10 heqichang

In iOS 8.1.3, Swift 3.0 crash too. Do you solve it? @heqichang

meigesir avatar Dec 17 '16 06:12 meigesir

@meigesir I wrote a category by Objective-C, then changed his code call my category method.

heqichang avatar Dec 23 '16 01:12 heqichang

@heqichang Me,too😊

meigesir avatar Dec 23 '16 02:12 meigesir

use CIContext() , instead of CIContext(options: nil)

I used CIContext() and the crash solved.😊

FicowShen avatar Oct 28 '17 11:10 FicowShen