Question

How to draw a freehand drawing on UIView rather than UIImageView using touches moved method. I have many other subviews on this view so i cannot add image view as whole view.I have seen many examples but they are drawing in UIImageView.

Was it helpful?

Solution

see this sample ..... GLPaint Sample

OTHER TIPS

You must use from their features. For lines, you just save two points on it, it is better to save its head and tail. For circle just save its center and radius. And For each points just save a pixel as a center. At the end of it, if your objects have some features as a color, thickness or ... just add these features inside of other features that I said.

I hope it be useful for you!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top