iPad / iPhone-直接打印到网络打印机而无空印弹出 [英] iPad/iPhone -- printing directly to a network printer without airprint popover

查看:164
本文介绍了iPad / iPhone-直接打印到网络打印机而无空印弹出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个iPad / iPhone应用程序,该应用程序要求我在完成交易后在网络打印机上打印出收据。我设法使自动打印功能在某种程度上可以正常工作,因为我可以使UIPrintInteractionController弹出窗口正确显示,单击打印按钮,然后在打印机模拟器中查看结果。由于我的应用程序的要求,我希望在完成交易时跳过弹出步骤并自动打印收据。换句话说,是否可以将打印作业发送到预先指定的网络打印机而无需添加额外的按钮单击?我是否需要尝试扩展UIPrintInteractionController类?如果是这样,那么有人有这种方法吗?

I've developing an iPad/iPhone application that requires that I print out a receipt on a network printer when I finish a transaction. I've managed to get airprint functionality working to some extent in that I can get the UIPrintInteractionController popover to appear appropriately, click the "Print" button and then view the results in the Printer Simulator. Because of the requirements of my application, I'm hoping to skip the popover step and automatically print the receipt when I close the transaction. In other words, is it possible to send a print job to a pre-specified network printer without having to add the extra button click? Do I need to try to extend the UIPrintInteractionController class? If so, has anyone had luck with this approach?

其他任何替代建议也都很好。

Any other alternate recommendations would be great as well.

推荐答案

使用 UIPrintInteractionController 类无法做到这一点,它旨在为用户提供标准的打印选项,并且应用商店没有安全的方法来解决这个问题。

There is no way to do this using the UIPrintInteractionController class, it is designed to present the user with standard print options, and there is no app store safe way of getting around this.

这篇关于iPad / iPhone-直接打印到网络打印机而无空印弹出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆