The easiest way, if you can configure iOS 3.2 or higher, is to wrap CGPathRef in UIBezierPath :
[myArray addObject:[UIBezierPath bezierPathWithCGPath:myPath]]
If you need to support earlier versions of iOS, you can use CFArray instead of NSArray because CGPath comes from CFType .
source share