如何使用IKScannerDeviceView?
我正在开发我的第一个 Objective C 应用程序;一个简单的程序,用于扫描图像并将其上传到服务器。因此,我很高兴在界面生成器库中看到 IKScannerDeviceView。但是,每当我将其拖到示例应用程序并运行时,该应用程序就会冻结。
Apple 网站上的文档没有示例。
到正在运行的使用 IKScannerDeviceView 的应用程序的最短距离是多少?
(我更愿意使用这个,而不是古老的 TWAIN 代码,正如也向我建议的那样。 )
I'm developing my first Objective C app; a simple program to scan an image and upload it to a server. So I was excited to see the IKScannerDeviceView in the library of Interface builder. However, whenever I drag it onto my sample app and run, the app freezes.
The documentation on Apple's site has no examples.
What's the shortest distance to a running app that uses IKScannerDeviceView?
(I would much rather use this, than the ancient TWAIN code, as was also suggested to me.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我刚刚组装了一个小应用程序,可以扫描一个或多个离散页面,并使用 IKScannerDeviceView 将它们组合成一个 PDF 文件。它主要是在 Interface Builder 中组装的“免费”功能。该类似乎非常古怪 - 如果您不将其后处理应用程序重置为 nil,它会打开预览,而我实际上无法让它在内存中提供扫描结果。但如果您认为代码可能有用,请查看该代码。 HG 存储库。
I've just put together a little app that scans one or more discrete pages and puts them together into a PDF file using IKScannerDeviceView. It's mostly "free" functionality assembled in Interface Builder. The class seems to be pretty quirky -- if you don't reset its post-processing app to nil, it opens Preview, and I can't actually get it to deliver scan results in-memory. But have a look at the code if you think it might be useful. HG repo.