Re: AirPrint in iOS 11?
Re: AirPrint in iOS 11?
- Subject: Re: AirPrint in iOS 11?
- From: Carl Hoefs <email@hidden>
- Date: Fri, 11 May 2018 18:02:56 -0700
Yep. There's not much to go wrong. That's why I can't understand why it doesn't
select the printer from my app (but Photos can). That part is really out of my
control. You present the picker and it's supposed to perform the selection. If
it doesn't, I'm clueless.
-Carl
> On May 11, 2018, at 5:55 PM, Alex Zavatone <email@hidden> wrote:
>
> I did it a few months ago. Have you tried the sample code?
>
> https://developer.apple.com/library/content/samplecode/PrintBanner/Introduction/Intro.html#//apple_ref/doc/uid/DTS40013422
>
>> On May 11, 2018, at 7:54 PM, Carl Hoefs <email@hidden>
>> wrote:
>>
>> As an addendum: I've verified that I can print from the iPhone Photos app
>> to my printer using AirPrint. The issue is doing it programmatically.
>>
>>
>>> On May 11, 2018, at 5:50 PM, Carl Hoefs <email@hidden>
>>> wrote:
>>>
>>> Is printing from iOS still possible? Is AirPrint still a viable SDK to use?
>>>
>>> I can get AirPrint to bring up a printer selection screen, but it won't
>>> actually select a printer.
>>>
>>> I present the printer selection screen:
>>>
>>> UIPrinterPickerController *printPicker =
>>> [UIPrinterPickerController
>>> printerPickerControllerWithInitiallySelectedPrinter:nil];
>>> [printPicker presentAnimated:YES completionHandler:
>>> ^(UIPrinterPickerController *printerPicker, BOOL userDidSelect,
>>> NSError *error)
>>> {
>>> // . . .
>>> }];
>>>
>>> By default, this presents a tableview with an entry that says:
>>>
>>> "Printer Select Printer >"
>>>
>>> and below, it shows a preview of the image that will be printed. So far, so
>>> good.
>>>
>>> If I tap on "Select Printer >" it takes me to a tableview list of the
>>> available printers.
>>> If I tap an available printer, it takes me back to the default screen, with
>>> NO printer selected!
>>>
>>> The printer is an AirPrint-capable device (Canon), on the local wifi with
>>> the iPhone. I've implemented all of the
>>> UIPrintInteractionControllerDelegate callbacks (none of which get called).
>>>
>>> What is going wrong here? There's nothing in the Xcode log.
>>>
>>> -Carl
>>>
>>> _______________________________________________
>>>
>>> Cocoa-dev mailing list (email@hidden)
>>>
>>> Please do not post admin requests or moderator comments to the list.
>>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>>
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>>
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden