iOS Print functionality – to print using AirPrinter

Now, It’s possible to print a document/image from the iOS Device having iOS 5.

To implement print functionality  UIPrintInteractionControllerDelegate is used.

Here are the screen-shots of the sample code given at the end of this post.

iPhone screen – before print button tapped.

AirPrint - iOS iPad iPhone - 2

iPhone Screen – After print button tapped.

AirPrint - iOS iPad iPhone - 1

iPad Screen – Print functionality overview

AirPrint - iOS iPad iPhone - 3

Here is the image – which should get printed when user taps on print button.

AirPrint - iOS iPad iPhone - 4

Here is the sample code of header file.

Here is the sample code of implementation file.

 

Grab the sample code from here.

2 thoughts on “iOS Print functionality – to print using AirPrinter

    • For that, you have to pass the NSData. So, NSData can be of any type, NSData from the PDF document. NSData from the image or anything else.
      Hope that hint works for you.

Leave a Reply

Your email address will not be published. Required fields are marked *



*