Draw Perpendicular line between two lines in iOS : <p>I want to draw a perpendicular line between P1 and P2 corresponding to P3.
I have P1 and P2, when I touch on UIView P3 will make.
Now I want to draw perpendicular line from P3 corresponding to P1 and P2.</p>

<p><a href="https://i.stack.imgur.com/pXXyO.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pXXyO.jpg" alt="enter image description here"></a></p>
