Jeff K.
Jeff K.

Reputation: 1

How to print an image in iOS 4.2?

I find the Apple documentation difficult to read through. Perhaps someone out there is willing to share some code on how to easily print a JPG or PNG file in iOS 4.2?

Upvotes: 0

Views: 936

Answers (1)

Evan Mulawski
Evan Mulawski

Reputation: 55334

There are three basic steps:

  1. Instantiate an NSData object from your file.
  2. Create a UIPrintInfo object that contains the job specs.
  3. Send the data to a UIPrintInteractionController, which will begin the process.

See this article for a code sample.

Upvotes: 1

Related Questions