以编程方式从 ipad 将数据发送到 wifi 打印机
我正在创建一个 ipad 应用程序,在其中我想以编程方式将数据发送到 wifi 打印机。是否有任何 API 或示例代码可用于实现此目的?
谢谢。
I am creating an ipad application in which i want to send data to the wifi printer programmatically. Is there any API or sample code available to acheive this?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为普通的打印 API 可以使用 AirPrint 来完成此任务。 http://developer.apple.com/library /IOs/documentation/2DDrawing/Conceptual/DrawingPrintingiOS/Printing/Printing.html
此外,还有一个名为 Printopia 的出色应用程序,可让您的 Mac充当 AirPrint 主机:http://www.ecamm.com/mac/printopia/
I think the normal printing APIs will accomplish this, using AirPrint. http://developer.apple.com/library/IOs/documentation/2DDrawing/Conceptual/DrawingPrintingiOS/Printing/Printing.html
In addition, there's a great app called Printopia that allows your Mac to serve as an AirPrint host: http://www.ecamm.com/mac/printopia/
UIPrintInteractionController *pic = [UIPrintInteractionController 共享打印控制器];
if (pic && [UIPrintInteractionController canPrintData: self.myPDFData] ) {
}
UIPrintInteractionController *pic = [UIPrintInteractionController sharedPrintController];
if (pic && [UIPrintInteractionController canPrintData: self.myPDFData] ) {
}