I have a Problem with a UIScrollView CATiledLAyer stucture.
What I'm doing is showing pdf Pages in a Zommable Scrollview with CATiledLAyer. I created a PDF Search which highlights words on the pages. Now the Problem.
How can I force the unzoomed state to redraw, because I add the highlight directly on the PDF Image in the drawLayer Method. This one is called when I first see the page (where there are no Search Results) and when i'm zooming, correctly showing the highlighted words.
But in the unzoomed state it is not showing, and I cannot force the repaint of the Layer with setNeedsDisplay on the view or the layer or the scrollview.
Can Somebody help me?
I found out I need t call setNeedsDisplay on the zoomLayer. ^^
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.