0% found this document useful (0 votes)
432 views

Objective-C PDF Reader Example

The document describes a simple Objective-C application that allows users to display, scroll, and zoom a PDF file. It provides step-by-step instructions for creating the application in Xcode, including adding a UIWebView delegate, loading the PDF into the web view, and allowing users to scroll and zoom. The application uses a sample PDF file to demonstrate the functionality.

Uploaded by

mouni_c
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
432 views

Objective-C PDF Reader Example

The document describes a simple Objective-C application that allows users to display, scroll, and zoom a PDF file. It provides step-by-step instructions for creating the application in Xcode, including adding a UIWebView delegate, loading the PDF into the web view, and allowing users to scroll and zoom. The application uses a sample PDF file to demonstrate the functionality.

Uploaded by

mouni_c
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

11/07/2012

Objective-C PDF Reader Example

Enjoy All The Way!

Home

Events

Programming

Travel

Journal

My Bucket List

About Haifa Carina

Objective-C PDF Reader Example


Wednesday, 13 July 2011 17:07

So you want to see a simple example of an Objective-C application that allows you to display, scroll and zoom your pdf file? You found the right page! In this example, we'll be using Objective-C Pocket Reference PDF file by O'reilly . Enjoy! :)

Hi! I'm Haifa Carina, a 21-year-old graduate of BS in Computer Science from Xavier University Ateneo de Cagayan, Philippines. iOS developer. Events Organizer. Adventurer. Challenger. Dreamer. I am real. I like green! I give hugs! I love challenge. I hate leeches. I want to travel the world! I wish I could teleport. I need you to be real. I will build my underground house. I was always impulsive. I feel restless inside. I think I can do anything. I say "Life is short, enjoy all the way!" Email Me: haifa@baluyos.net

JoomlaWatch Agent

haifa.baluyos.net/index.php?option=com_content&view=article&id=56:objective-c-pdf-reader-exam

1/3

11/07/2012

Objective-C PDF Reader Example

Step 1
Share with your friends and get rewarded PhP 7.00 per click, via : twitter facebook msn email Share http://gr..

Step 2
Fill in your email to redeem your earnings.

1. In XCode, create a View-based Application. Name your project PDF. 2. Open the PDFViewController.h. Then add the <UIWebViewDelegate> beside UIViewController. So it looks like this: 1 . 2 . 3 . 4 . 5 . 6 . 7 . #mot<Ii/Ii.> ipr UKtUKth @nefc PFiwotolr:UVeCnrle <IeVeDlgt> { itrae DVeCnrle Iiwotolr UWbiweeae } @n ed

3. Open the PDFViewController.m. 4. Uncomment (or create) the loadView method. We won't be using any nib files. Then insert this code in the loadView method. 0. 1 0. 2 0. 3 0. 4 0. 5 0. 6 0. 7 0. 8 0. 9 1. 0 1. 1 1. 2 1. 3 1. 4 1. 5 1. 6 1. 7 / Cetsa isac o aUWbiw / rae n ntne f IeVe UWbiw*Wbiw=[UWbiwalc iiWtFaeCRcMk(,0,3040] IeVe aeVe [IeVe lo] ntihrm:Getae0 0 2,5); / St tesaeo wbcnettefrttm i i dslydi awbve / es h cl f e otn h is ie t s ipae n e iw aeVe.clsaeoi =YS WbiwsaePgTFt E; [Wbiwsteeaesl] aeVe eDlgt:ef; /Cet aULojc. /rae R bet N U L * r S r n = [ S R U L i h t i g @ ht:/ril.o/aao/betp/hpe/h1pf ] SR ultig N U L R W t S r n : "tp/oelycmctlgojccrcatrc0.d" ; /ULRqs Ojc /R eut bet NULeus *eusOj=[SRRqetrqetihR:rSrn] SRRqet rqetb NULeus eusWtULultig; /la teULit tewbve. /od h R no h e iw [WbiwlaRqetrqetb] aeVe odeus:eusOj; [efve aduve:Wbiw; sl.iw dSbiwaeVe] [Wbiwrlae; aeVe ees]

5. Build and Run. 6. Celebrate! You're done. :D Drop a comment if you find this post helpful. Cheers! :D
Like 2 people like this. Be the first of your friends.

COMMENTS

#4 Haifa Carina Quoting enrico:

2012-02-08 01:30

Very useful! I'm new with obejctive-c and i've a question. is it possible add a function for opening it at 3 pages for example? Thanks Enrico

Hi Enrico, sorry haven't tried that one yet. :)

Quote

#3 enrico 2012-02-07 15:42 Very useful! I'm new with obejctive-c and i've a question. is it possible add a function for opening it at 3 pages for example? Thanks Enrico

Quote

#2 Haifa Carina hi mark!

2012-01-07 22:53

I'm also fairly new to objective c and haven't tried the sending of email function. But if i'm to do this with my current knowledge, my solution would be to call a PHP script hosted on a server to do the email function. :) Quote

#1 mark 2012-01-07 02:15 0 Very cool. I have one question for you. After you load the pdf into a webview, I would like to give the user the ability to email the PDF that is loaded into the webview...I'm pretty sure I can do that in Objective C, but I am pretty new to Obj. C...Could you help me out

haifa.baluyos.net/index.php?option=com_content&view=article&id=56:objective-c-pdf-reader-exam

2/3

11/07/2012
with this? thanks

Objective-C PDF Reader Example

Quote

Refresh comments list RSS feed for comments to this post


A DD COMMENT

Name (required) E-mail (required, but will not display) Website

1000 sym bols le ft

Notify me of follow-up comments

Refresh

Send
J C omments

Enjoy All The Way!, Powered by Joomla! and designed by 123WebDesign

haifa.baluyos.net/index.php?option=com_content&view=article&id=56:objective-c-pdf-reader-exam

3/3

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy