Drawing overlay view on top of a web view

二次信任 提交于 2019-12-25 18:48:08

问题


I am trying to make an app that can annotate PDFs.

What I have done, is add the PDF through a UIWebview, so my main UIViewControllerhas a UIWebView Delegate.

What I am trying to do is put my drawing layer, which is a UIView over the top of my PDF view.

I have tried setting the background colour to "clearColour" and the opaque property to no, I still get a weird affect.

I think the issue might be because of drawing a bitmap onto the UIView, but I would still like some insight, or an example if one exists.

Thanks.

This is an image of the problem, the little white band at the top is the PDF, the white box is the UIView which I am drawing on.

The code I used for the "drawing code" is here, see "SmoothedBIView"

http://mobile.tutsplus.com/tutorials/iphone/ios-sdk_freehand-drawing/


回答1:


Sorry, just noticed you had two questions. Again maybe this project can help you.



来源:https://stackoverflow.com/questions/17344390/drawing-overlay-view-on-top-of-a-web-view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!