I have a PDF file in my application bundle which I’d like to open in Safari. Is there any possibility to do that?
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is posible to open documents in external applications. Check out UIDocumentInteractionController class, it’s simple as this:
That said, the pdf will be offered to be opened in iBooks, as Safari apparently doesn’t boast of pdf reading capability 🙂 So if you insist on having Safari open your pdf, it might be tricky.