Skip to content

* add support custom CIContextFactory.use it fix crash in iOS8#46

Open
stat0s2p wants to merge 1 commit intoaschuch:masterfrom
stat0s2p:master
Open

* add support custom CIContextFactory.use it fix crash in iOS8#46
stat0s2p wants to merge 1 commit intoaschuch:masterfrom
stat0s2p:master

Conversation

@stat0s2p
Copy link

read http://stackoverflow.com/questions/39570644 answer
create CIContext instance in object-c and set it to QRCode.CIContextFactory static field in iOS8.
example:

if #available(iOS 9.0, *){
  return
}
QRCode.CIContextFactory = {
  return CIContext.cso_context(options: nil)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant