Certificate not registering using swift.

I am trying to integrate the diagram widget but I am running issues when trying to load it. I have added the MyCertificate.c/h files into the project and imported the MyCertiricate.h into the bridging header file but I am getting an error when trying to register it.

This is what I have `let certificate = Data(bytes: myCertificate.bytes, count: myCertificate.length)

isValidCertificate = diagramView.registerCertificate(certificate)`

This is the error I am getting..

2016-11-25 15:16:55.934282 NoteMD[2511:955728] -[UIView registerCertificate:]: unrecognized selector sent to instance 0x10142b070
2016-11-25 15:16:55.939099 NoteMD[2511:955728] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView registerCertificate:]: unrecognized selector sent to instance 0x10142b070'
*** First throw call stack:
(0x1912501c0 0x18fc8855c 0x191257278 0x191254278 0x19114e59c 0x1000e41c8 0x1000e3f04 0x1000e3f90 0x1970915c8 0x197091190 0x1971cafd8 0x1971cade0 0x1971cac3c 0x1971cd8e4 0x19728a640 0x1970c69a0 0x19728a448 0x1970c69a0 0x1970c6920 0x1970b0dd0 0x19759eb98 0x1970c69a0 0x1970c6920 0x1970b0dd0 0x1970c620c 0x1970c5d34 0x1970c0f7c 0x197091a44 0x19787eea8 0x197878910 0x1911fe278 0x1911fdbc0 0x1911fb7c0 0x19112a048 0x192bad198 0x1970fc818 0x1970f7550 0x1000e60b0 0x19010c5b8)
libc++abi.dylib: terminating with uncaught exception of type NSException

I have declared the view as
@IBOutlet weak var diagramView: DIWDiagramView!

1 Comment

Dear Magee,

We don't have specific documentation regarding swift implementation however it should work properly.
Could you please firstly open the full ATK 2.2 Xcode project and check the Diagram Sample work properly (after replacing default certificate with the certificate.c downloaded on ATK portal)?

Best regards

Login or Signup to post a comment