• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AirPrint in iOS 11?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AirPrint in iOS 11?


  • Subject: Re: AirPrint in iOS 11?
  • From: Carl Hoefs <email@hidden>
  • Date: Fri, 11 May 2018 18:59:47 -0700

Okay, got it to work. The sample code I had based mine on was too old (WWDC
'14) .

Thanks for the link, Alex!
-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

References: 
 >AirPrint in iOS 11? (From: Carl Hoefs <email@hidden>)
 >Re: AirPrint in iOS 11? (From: Carl Hoefs <email@hidden>)
 >Re: AirPrint in iOS 11? (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: AirPrint in iOS 11?
  • Next by Date: Implementing an import command in NSDocument-based app
  • Previous by thread: Re: AirPrint in iOS 11?
  • Next by thread: Implementing an import command in NSDocument-based app
  • Index(es):
    • Date
    • Thread