I am using this code and it works:
UIPrintInteractionController *pic = [UIPrintInteractionController sharedPrintController];
UIPrinter *printer = [self savedPrinter]; // get the printer you want
...
[printer contactPrinter:^(BOOL available) {
if (available) {
[pic printToPrinter:printer completionHandler:completionHandler];
} else {
NSLog(@"printer unavailable");
}
}];
Post
Replies
Boosts
Views
Activity
Thank you, I've tried it and it seems to work fine for me too.