How can I use IKScannerDeviceView to scan a document inside of my app?
I tried adding an IKScannerDeviceView into my view through IB and setting its delegate to my app delegate (which implements the IKScannerDeviceViewDelegate), but when I run the app I get a view with the buttons Show Details
and Scan
, and only Show Details
is enabled and when I click it nothing happens.
I have a scanner plugged in and I can scan through Image Capture, but not through my app.
Does anybody have a good tutorial on how to use it?
I was finally able to figure out how to use IKScannerDeviceView.
Your class must implement the following delegates:
and you need to have an IKScannerDeviceView in your window, with its delegate set to the class implementing
IKScannerDeviceViewDelegate
To start using it, you must create an
ICDeviceBrowser
like so:Then implement the delegate methods in a manner similar to this:
Then if all goes right, your IKScannerDeviceView will be able to interact with your scanner!