Quote:
Originally Posted by Kroupy
I'm not quite sure, but when do you change the color? It sounds obvious, but try changing it just before you draw the line. That means change the color three times. Or are all three lines always colored like the last color?
|
Yeah, well that goes without saying but as you mention, all lines get the last stroke color I set.
I found this post and it helped me figure this one out:
Changing colors with CGContextStrokePath - Stack Overflow
You have to end your contentstrokepath, as if you're saying that "this line ends here", before you can call your new line a separate line :-)
Problem solved - thanks for your reply!