Alex Zavatone
2018-05-12 00:55:55 UTC
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
Cocoa-dev mailing list (Cocoa-***@lists.apple.com)
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:
https://lists.apple.com/mailman/options/cocoa-dev/gegs%40ml-in.narkive.net
This email sent to ***@ml-in.narkive.net
https://developer.apple.com/library/content/samplecode/PrintBanner/Introduction/Intro.html#//apple_ref/doc/uid/DTS40013422
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.
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
https://lists.apple.com/mailman/options/cocoa-dev/zav%40mac.com
_______________________________________________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.
UIPrinterPickerController *printPicker =
[UIPrinterPickerController printerPickerControllerWithInitiallySelectedPrinter:nil];
^(UIPrinterPickerController *printerPicker, BOOL userDidSelect, NSError *error)
{
// . . .
}];
"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
_______________________________________________
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
https://lists.apple.com/mailman/options/cocoa-dev/newslists%40autonomy.caltech.edu
_______________________________________________I can get AirPrint to bring up a printer selection screen, but it won't actually select a printer.
UIPrinterPickerController *printPicker =
[UIPrinterPickerController printerPickerControllerWithInitiallySelectedPrinter:nil];
^(UIPrinterPickerController *printerPicker, BOOL userDidSelect, NSError *error)
{
// . . .
}];
"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
_______________________________________________
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
https://lists.apple.com/mailman/options/cocoa-dev/newslists%40autonomy.caltech.edu
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
https://lists.apple.com/mailman/options/cocoa-dev/zav%40mac.com
Cocoa-dev mailing list (Cocoa-***@lists.apple.com)
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:
https://lists.apple.com/mailman/options/cocoa-dev/gegs%40ml-in.narkive.net
This email sent to ***@ml-in.narkive.net