In the previous article we learned about printing documents from IOS app using UIPrintInteraction-Controller. But most of developers don’t have Air-printer device to test their printing document. Don’t worry Apple Inc. provided Air-printer simulator.
To download .dmg file click given below link (Apple developer account access is needed)
https://developer.apple.com/downloads/index.action?name=hardware%20io%20tools
After login, you will see page as shown below
Download the .dmg file compatible with your Xcode. Click on the downloaded file you will see list of hardware simulators as shown in below
Click on Printer Simulator, a dialogue will open for permissions. Click Open, it will open up screen as shown below
Click on Load paper to select type of printer and page six options. A screen with list of printers will pop up.
Select printer and other settings as per your requirements. Click Ok and open up your app in simulator. Select print option and click on Select Printer, it will display list of printers.
Select one of them and hit print button.It will generate output as shown below