Search code examples
iphoneobjective-cquartz-2d

Is there a way to make a CGPath grow by x Pixels?


I'm building a custom UIView, which draws its own content in a drawRect: Method. I want to stroke a CGPath with a color, and then grow this selection 1px and stroke with another color. Has somebody worked out a method to do this quite easily?


Solution

  • You could try applying an appropriate scaling transformation to your graphics context.