无法使用AirPrint显示打印机选项 [英] Unable to display printer options with AirPrint

查看:154
本文介绍了无法使用AirPrint显示打印机选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将AirPrint功能添加到我的iPad应用程序

I want to add AirPrint functionality to my iPad application

我一直在尝试显示Apple的绘图和打印指南

I have been trying to display printer ontions described in Apple's Drawing and Printing Guide

我有工具栏和 UIBarButtonItem * printButton 。在控制器中,我收到 onPrintClick 并尝试通过以下代码显示打印机选项:

I have toolbar and UIBarButtonItem *printButton. In controller I receive onPrintClick and try to display printer options by such code:

UIPrintInteractionController *controller = [UIPrintInteractionController sharedPrintController];
 [controller setDelegate:self];
 if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
  [controller presentFromBarButtonItem:self.printButton animated:YES
         completionHandler:completionHandler];
 } else {
  [controller presentAnimated:YES completionHandler:nil];
 }

请帮忙,因为我什么都没收到:(

Please help, because I do receive nothing :(

推荐答案

有类似的问题:
如何在iOS 4.2中打印?

试试这个。
这对我有帮助将Air Print添加到我的应用程序。

Try with this. It really helped me in adding Air Print to my app.

这篇关于无法使用AirPrint显示打印机选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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