UIDocumentInteractionController or QLPreviewController can't zoom PDF on iOS5? - ios5

I use QLPreviewController to view PDF files in one of my apps. However, ever since iOS5, users can no longer pinch to zoom in/out of the PDF. This is terrible for iPhone users, as they can't read anything.
I have also tried using UIDocumentInteractionController but have had the same problem.
Anyone know what's going on with this?

just check your deployment target and make it as 4.2 and give a trial...

Related

Multiple Views on one screen iPhone/iPad

I saw mulitple apps using this, e.g. Facebook iPad App, Twitter iPad App .
How is it implemented, that multiple views can be draged in and out to the main view?
It seems as they are all in one chain of views.
I can't figured it out.
Thanks for your help.
Twitter and Facebook both do some pretty custom stuff for their iPad apps. They also both have lots of open source iOS code that helped them do it. Check out TWUI from Twitter and Three20 from Facebook.
A slightly easier way to do a similar effect is to use a UISplitViewController. A split view controller is kind of like the big brother of a UINavigationController on the iPhone.
You can add multiple subview uiviews on top of each other and move them when needed with cabasicanimation..
Also another and probably better way is using layers in quartzcore. You can addsunviews to layers and arrange them however you want. You can even make layers drop shadows and have rounded edges..

iOS Delete Button - Objective C

I was wondering where does one get access to iOS delete button. This is the button that Apple uses to close the iAd window, and for deleting iPhone apps from the home screen, and also the Twitter App uses it to delete the photo that you add to a tweet. Do they just download this image somewhere or is there an option for it somewhere like for the info button, and the detail disclosure.
Thanks
I also found that Growl uses this icon along with Lion's Mission Control...
You can use UIKit Artwork Extractor to extract about any iOS artwork that is not public. Just search for close and you will find several close button png images.
Apple doesn't make that image available, unfortunately.
This iPad template has the icon you want, though, in a PSD: http://www.teehanlax.com/downloads/ipad-gui-psd/
If it's actually an image and the iOS Simulator displays it, it should be hidden somewhere inside the Simulator frameworks or support files.
What, you mean the circle with an X in it? It's pretty easy to make your own, either in an image editor or just drawing it in code. I can guarantee you that's what the Twitter app did.

Zoom support while page curling effect present in pdf reader app

Hi
I am developing an ipad Magazine app where I need to display pdf files.I am using leaves project for page curl effect.This works great.
But in landscape page fits to height(768px) and it becomes difficult to read the font.
Thats why I want to support zoom in/out on this view.
I am a newbie to Core Graphics.I think in leaves project they parse pdf to show image of each page.But I dont know why zoom is not supported if it is an image.
There are some more branches of leaves project for implementing this feature but all of them are not perfect.
Shall I continue using leaves or UIViewAnimationTransitionCurlUp/Down will help me for both the problems?
Thanks
here is the code for your requirement. check out this
You can refer this tutorial. Provided by APPLE
Hope it helps.

How to make iPad use the #2x.png high res images in "2x" mode

I've read the documentation and googled until I couldn't google anymore, but still I cannot figure out how to make my iPhone app use the higher resolution images when displayed in "2x" mode on the iPad.
I have Icon.png Icon#2x.png and Icon-72.png and they work fine, but I don't want to have to rename all of my images. Also, the "2x" just seems to scale up pixels so text and IB objects look terrible. Is there a fix for this? Any suggestions would be greatly appreciated!
Note: This is not a universal app. I don't want to make it into a universal app. I just want it to scale up and look pretty on the ipad.
It is possible, at least in Cocos2D apps. Matt Rix does exactly this in his app Trainyard and it looks great on the iPad at 2x! He covers some of the details on his blog: Retinafy your Game.
Apple want you to write native iPad apps, so they deliberately don't support this, and there's no way to make it happen that I'm aware of.
You can register for the notification _UIClassicApplicationWillChangeZoomNotificationName and scale your graphics appropriately, i.e. by setting the rasterizationScale on the CALayer to the value returned by [[UIScreen mainScreen] scale].

IPhone phonegap pdf issue

I have a strange issue in phonegap framework. I want to display PDF file in my application, when I am trying to add PDF file with iFrame tag it doesn't show a PDF with horizontal scroll and with a big zoom size. so getting out of screen.
I tried by another way using embed tag, its also having same problem with addition to that its showing PDF for only first time in the application.
If anybody know how to display a PDF in phonegap with specified zoom level or with scroll bar. Above code is working fine in iPhone mobile safari, but not in phonegap. Any Idea?
Thanks.
To display pdf in phonegap,
have lots of trouble,
but best solution so far,is to used ChildBrowser Plugin for phonegap here is the link-
https://github.com/purplecabbage/phonegap-plugins/tree/master/iPhone/ChildBrowser
this will help you to call child native uiwebview in your application(only for iphone),
so you can easily enjoy pinch zoom feature
Using Phonegap you'll have only one UIWebView so probably the best idea is to open the pdf as a new object link using rel=external
Other suggestion is look at the view-port size, maybe you'll have to increase it's size to allow the pinch and zoom.