I want to draw a path, but with a dotted line rather than a solid one. Using lines would be possible, but it would be a pain.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The “line” in CGContextSetLineCap, CGContextSetLineDash, CGContextSetLineJoin, and CGContextSetLineWidth refers to the “line” of color that is drawn along the path when stroking it, as opposed to the solid area inside that is colored when filling. This is not to be confused with the “line” in CGContextAddLines, CGContextAddLineToPoint, CGPathAddLines, and CGPathAddLineToPoint, which refers to the geometrical line segment that may be part of a path.
To use an analogy, when you’re drawing by hand on paper you move your pen along a path which leaves a line on the paper.