ILPDFKit
ILPDFKit copied to clipboard
Zooming no longer functioning?
It looks like somewhere along the way, zooming on documents stopped working?
I partially fixed this in ILPDFView
by:
- Assigning a
maximumZoomScale
to theUIScrollView
indidMoveToWindow
- Defining
viewForZoomingInScrollView
to return_pdfDocumentView
This almost works (albeit laggy), but updateWithZoom
seems to not be correctly calculating the X-axis for the annotations on the document. Y axis seems to be spot on.
It looks like updateWithZoom
is scaling its original frame with the UIScrollView
's zoom factor, so I'm not sure how this is going wrong.
It looks like somewhere along the way, zooming on documents stopped working?
I partially fixed this in
ILPDFView
by:
- Assigning a
maximumZoomScale
to theUIScrollView
indidMoveToWindow
- Defining
viewForZoomingInScrollView
to return_pdfDocumentView
This almost works (albeit laggy), but
updateWithZoom
seems to not be correctly calculating the X-axis for the annotations on the document. Y axis seems to be spot on.It looks like
updateWithZoom
is scaling its original frame with theUIScrollView
's zoom factor, so I'm not sure how this is going wrong.
I have the same problem, have you solved it yet?
Have anyone fixed this? Thanks!
It seems that the function "scrollViewDidZoom" located in the file "ILPDFView.m" is not get called. I was able to fix it by implementing the following code on the same file "ILPDFView.m":
#pragma mark UIScrollViewDelegate methods
- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView { return _pdfDocumentView; }
It fixed the zoom issue, but still messing up with the textfields... Any better idea?