0

How can i detect the touch (x,y) of my pdf rendered in the ScrollView. To be clear: I want the x,y of the pdf not of the screen.

Hope someone knows this...

Thanks.

Vladimir
  • 170,431
  • 36
  • 387
  • 313
meersmans
  • 463
  • 5
  • 14

1 Answers1

0

Have you tried - (CGPoint)locationInView:(UIView *)view ? If you put the view that the PDF is in, it should work…

SushiGrass Jacob
  • 19,425
  • 1
  • 25
  • 39
  • No this doesnt work. It places the marker right, but when i zoom it's at a different place. – meersmans Feb 23 '11 at 14:59
  • Is the pdfView in a UIScrollView? If so, you can use `- (void)zoomToRect:(CGRect)rect animated:(BOOL)animated` or `- (void)scrollRectToVisible:(CGRect)rect animated:(BOOL)animated` by creating a CGRect with the origin.x and origin.y of where the touch is. – SushiGrass Jacob Feb 23 '11 at 16:59