UIBezierPath Multiple Line Colors

前端 未结 2 1617
不知归路
不知归路 2020-12-03 12:58

My attempt to draw UIBezierPath lines with different colors is failing me. All the lines change to the currently selected color. All my path and information are all stored i

2条回答
  •  一个人的身影
    2020-12-03 13:13

    The stroke/fill colors only affect the -stroke command. They don't affect the -appendPath: command. Paths don't contain per-segment color information.

    If you need a multi-colored line you're going to need to stroke each color separately.

提交回复
热议问题