iphone - Apple ZoomingPDFViewer won't allow dragging until after first zoom -


i'm using sample code view pdf in iphone app:

http://developer.apple.com/library/ios/#samplecode/zoomingpdfviewer/introduction/intro.html#//apple_ref/doc/uid/dts40010281-intro-dontlinkelementid_2

however, problem can't seem drag initially. can pinch , zoom initially, , after i've zoomed once, can drag view around fine. can't drag when view first loads.

any ideas?

i think i've figured out solution, though why doesn't work beyond me. if set zoomscale property, seems trigger whatever needed allow dragging , scrolling take place, if set property 1, nothing.

i did in initwithframe: method of uiscrollview:

... self.zoomscale = 1; ... 

if else knows of better or more correct way this, or has explanation why happens, i'd know.


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -