How do I draw a straight line in a view?

What is the most simple way to draw a straight line in a view?

@brower Do you need to actually DRAW a straight line, or do you simply need to DISPLAY a straight line? If all you need to do is simply display a straight line, then use a view that you use as a subView, and give it a height of 1 pt, and the width to be whatever length of the line you want.

If you want to ACTUALLY DRAW a line, well, that’s a bit different.

I hope this helps!

All the best!

I want to use whatever is the way intended to ACTUALLY DRAW a straight line from one point to another.

This topic was automatically closed after 166 days. New replies are no longer allowed.