Featured iPhone Development Resources iOS Development Tutorials Swift

Tutorial: Using The UIPrintInteractionController To Print Content With Proper Formatting

More and more apps are adding a print feature, and here’s a nice in-depth guide by Nate Cook on using the UIPrintInteractionController API to print content exactly as desired.

In the guide Nate shows:

How to perform the basic printer job setup using UIPrintInfo, printing already formatted content with UIPrintItem
Printing already formatted items with printItem, creating a basic UIPrintFormatter and formatting your content
Using UIPageRenderer to print an item with complete control
Setting up a UIPrintPickerController to present an in-app UI for printing in iOS 8

You can find the guide over on the NSHipster blog.

A nice guide for those looking to add a printing feature within their apps