Reputation: 3409
I have an option to print in my iPhone app.
On pressing the 'Print' button, UIPrintInteractionController
is presented. The issue is that I want to show an alert on pressing the print button if no printers are connected.
I tried several options like [UIPrintInteractionController canPrintData:dataFromPath]
but these options never worked.
Upvotes: 0
Views: 823
Reputation: 14694
if ([UIPrintInteractionController isPrintingAvailable]) {
//Printing is OK
}
else {
//Printing is not ok
}
Upvotes: 3