Reputation: 3136
I am developing an app where I create a PDF in the app and have to open it, so that the user can view it. I know that we can use Webview to open any PDF, but I want to open the PDF in the iPhones default PDF viewer(THE ONE WHICH OPENS UP WHEN WE CLICK ANY ATTACHED PDF IN EMAIL) which has share button on right side of the navigation bar and a back button.
Upvotes: 1
Views: 5902
Reputation: 3132
There is a sample code in the following link and it will help u 100 %.
http://ios.biomsoft.com/2012/02/17/load-a-pdf-file-in-the-iphone-app-smoothly/
Upvotes: 0
Reputation: 464
The simple answer is use the QuickLook framework and this is what the mail client uses (or close to it). It has a pdf viewer and it is really simple to use so I will direct you to the apple docs :)
Upvotes: 3