Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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/

enter image description here

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
155 views
Welcome To Ask or Share your Answers For Others

1 Answer

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...