Inside drawRect, I drew few dashed lines after setting the dash pattern etc.
Now once I stroke this path I need to draw normal lines, what should I do ?
Inside drawRect, I drew few dashed lines after setting the dash pattern etc. Now
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.
Sets the pattern for dashed lines in a graphics context.
Parameters
…
lengths
An array of values that specify the lengths of the painted segments and unpainted segments, respectively, of the dash pattern—orNULL for no dash pattern.For example, passing an array with the values [2,3] sets a dash pattern that alternates between a 2-user-space-unit-long painted segment and a 3-user-space-unit-long unpainted segment. Passing the values [1,3,4,2] sets the pattern to a 1-unit painted segment, a 3-unit unpainted segment, a 4-unit painted segment, and a 2-unit unpainted segment.