No doubt this might be a duplicate question but I am not able to get proper solution from any post here. So I am posting this as new post with a hope that I get some solution.
I my drawing app I want to give a feature of opacity for lines to be drawn.
But when I assign alpha to color, I am getting overlapped points in between the line.
Some where I found that drawing in two views solves this issue, but I was not able to understand the logic behind that.

I am using normal quartz 2d code to draw line on touch events.
Hie..
This is my final solution..
I am now drawing lines on drawRect event and drawing the entire line at a time as a path..
This creates opacity to retain and now no line caps drawn in between..
No doubt this is the trick that is working since I am drawing on every touch and this works..